You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am getting exception while using '/' in expression value. for example:
var query = createQuery("$filter=status ne 'FIXED/RESOLVED'");
Error: Unexpected character at 14$filter=status ne 'FIXED/RESOLVED'
at D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-parser\lib\parser.js:25:19
at Object.query (D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-parser\lib\parser.js:45:93)
at createQuery (D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-mongodb\lib\index.js:6:66)
Thanks
The text was updated successfully, but these errors were encountered:
It's somewhat complicated, but my understanding is that the module expects the parameter names ($filter, in this case) and the parameter values (status ne 'FIXED/RESOLVED', in this case) to be URI encoded. You can use encodeURIComponent function to do that.
Keep in mind that the module currently has a bug that prevents the usage of URI encoded date times.
Hi,
I am getting exception while using '/' in expression value. for example:
var query = createQuery("$filter=status ne 'FIXED/RESOLVED'");
Error: Unexpected character at 14$filter=status ne 'FIXED/RESOLVED'
at D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-parser\lib\parser.js:25:19
at Object.query (D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-parser\lib\parser.js:45:93)
at createQuery (D:\workspace\AmeriGas\API-Server\api-server\node_modules\odata-v4-mongodb\lib\index.js:6:66)
Thanks
The text was updated successfully, but these errors were encountered: