I am trying to request a simple API search from Magento2, but apparently I cannot use the % sign inside the URL request. Is there another way to use the percentage sign inside the URL?
- The %_% is after [value]
Request Link:
const request_data = {
url: 'http://.../rest/V1/products?searchCriteria[filter_groups][0][filters][0]'+
'[field]=name&searchCriteria[filter_groups][0][filters][0][value]=%Example%'+
'&searchCriteria[filter_groups][0][filters][0][condition_type]=like',
method: 'GET',
};
Console Error:
URIError: URI malformed
at decodeURIComponent (<anonymous>) at OAuth.deParam (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:227:27) at OAuth.deParamUrl (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:245:17) at OAuth.getParameterString (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:142:132) at OAuth.getBaseString (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:124:130) at OAuth.getSignature (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:100:36) at OAuth.authorize (/Users/Kevin/Desktop/TestingModules/node_modules/oauth-1.0a/oauth-1.0a.js:87:39) at Object.module.exports.init (/Users/Kevin/Desktop/TestingModules/test.js:36:43) at [eval]:1:19 at ContextifyScript.Script.runInThisContext (vm.js:50:33)