I’m trying to test connecting to a RESTlet using P...
# general
j
I’m trying to test connecting to a RESTlet using Postman. Sending the same request over and over, about 80% of the time I get
Copy code
error code: INVALID_LOGIN_ATTEMPT
error message: Invalid login attempt.
and the rest of the time it’s fine. I’m making no changes in between, just pressing send again. What the heck might be going on here?
b
whats the detail from the login audit trail
j
InvalidSignature
it’s very odd, I can send again and it’s fine
b
probably something wrong with the authorization's settings
j
why would it change though, if I change nothing else.
it’s like “click send ---> OK”, “click send ---> INVALID”, “click send ---> INVALID”, “click send ---> INVALID”, “click send ---> OK”, “click send ---> INVALID”
I’m not doing it fast or anything
b
if you mess up the encoding, the signature does not properly escape reserved characters
which means the signature will fail when it contains a reserved character like +
j
I’m not encoding anything myself though. Just using OAuth 1.0 with Consumer Key/Secret & Token ID/Secret.
I still don’t see how I can change nothing and it seems to randomly choose to fail or succeed.
b
go through the advanced settings of authorization
if you require a working example, then take a look at the rest web services collection
its setup correctly and marks the correct encoding setting
j
it feels like if something is wrong in my setup, it should fail every time though
b
take a look at the postman console
take a look at the signature of successful requests and failed requests
j
I’m not sure if I can download the REST Web Services Collection, as it does not appear on my ‘Download SuiteCloud Tools’ page.
b
if you see a plus in the signature of failed requests, then look back at what i told you
j
Thanks for your help BTW. Trying to see how to view the console.
I’m using the web version of POstman
b
you on your own there
hopefully its the actual console
j
I am still suss that this might just be some weird glitch
when I go to this URL (replacing with my account ID) I don’t think I’m seeing the collection to download
message has been deleted
this might be a problem for Next-Week-Jen
b
did you do the rest related setup?
j
I’m not sure how my setup would make it intermittently fail
it should fail all the time or not at all
b
i already listed the explanation about how messing up the encoding related settings will give intermittent failures
j
I don’t see anything where you said why it would happen intermittently. What is it that is different?
Do you happen to know if there’s a way to access that Collection you mentioned (the example) without enabling SuiteTalk REST Web Services? We are not actually using that, we are building our own API with RESTlets.
I am thinking the only difference is the timestamp… maybe nonce? Though I’m not setting those, POSTman is
the signature is base 64 encoded, which means the probability of it succeeding is equivalent to it not containing a plus
the usual for intermittent fails from postman is that encoding setting
n
This would happen to me as well
s
I have seen this as well. 3 clicks in row.…. Click Success…. click fail…. click Success …. or the other way around. literally nothing changes in between except time tick ticking away….