Is there a way to escape or encode pipes in a REST...
# suitetalkapi
s
Is there a way to escape or encode pipes in a REST EID search? My EIDs are like PREFIX|TYPE|INT and when I search by it in REST I get a odd error that says "Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail." -- though the audit trail shows no reason for the failed request. I tried uri encoding them, same result.
b
s
That page is giving me a not found, but I've looked at the audit trail and the reason is blank. If I don't use pipes in the request it succeeds (on a PUT then a subsequent GET by EID)
b
you need to be logged into netsuite to view that help page
s
I am logged in
b
using a role that isnt something limited like an employee center role
and probably need english language
s
I logged in to a non-sandbox account and it pulled up; I've looked over the logs with the detail, etc, it shows the correct token name and application, but detail is blank and it's failed
b
if there is no detail, then you want to go to support to get help
s
Yeah, that's my next step, but saw this slack and figured it'd be worth asking in here first since ACS is so dang slow
b
you really want some hint about whats wrong
if you dont have anything, you are left assuming that whatever you are using to generate the signature is wrong
s
That usually makes a detail of InvalidSignature though, doesn't it?
b
correct
s
Yeah, I'm not getting that error, I'm almost thinking this is a bug in REST
b
i can simply say that its possible to use external ids in rest webservices
s
I can use other EIDs just fine, just not ones with a | in them
b
that remains a support question
although i suspect the faster solution would be not tu use |
c
You could try %7C I guess
s
no go. The rest doc says only supports alpha numeric, _ and -; I think I'm screwed for EID queries