I’m trying to connect with Postman OAuth 1.0 but I...
# integrations
m
I’m trying to connect with Postman OAuth 1.0 but I’m continuing receiving the following error: {“type”:“https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2”,“title”“Unauthorized”,“status”401,“oerrorDetails”[{“detail”:“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.“,”oerrorCode”“INVALID_LOGIN”}]} The Audit Trail doesn’t show any attempt. I’m not sure my configuration on NetSuite is correct for OAuth 1.0
b
probably want to start at the postman side
what does your Auth parameters look like
m
Signature Method: HMAC-SHA1
Consumer Key/Secret and Access Token/Token Secret
Realm: myaccountid-sb1
message has been deleted
t
Try replacing the dash in the realm value with an underscore. So: myaccountid_sb1.
m
Same error
b
share the entire thing
should include your settings for where to add the auth data to
down to encoding the parameters in the authorization header
actually, given what you said about no logs, include the url too
m
I’m using NetSuite Rest Api Tutorial. Example 0.1 Test Request. Iìve hardcoded my URL: https://xxxxxx-sb1.suitetalk.api.netsuite.com/services/rest/* OPTIONS
The Auth header: OAuth realm=“XXXXXX_sb1”,oauth_consumer_key=“212992189680eadc0b9ac8b48f3959ae84c4bd523da59c14620714e2d8161dcf”,oauth_token=“73b42ffca0b06788d83468530bc27b463d04a92aa9d145078a7bfeba98db64d8”,oauth_signature_method=“HMAC-SHA1",oauth_timestamp=“1607625693”,oauth_nonce=“go3FtdnJ52T”,oauth_version=“1.0”,oauth_signature=“gDI%2FX6ETpK690%2B5puu27%2F4miqkY%3D”
message has been deleted
b
the rest api Postman Collection uses a Postman Environment to hold token and account details
you shouldnt need to fill in auth parameters if you are following netsuite's tutorial
that said, get the account id from SOAP Web Services Preferences or Company Information
dont mess up the case
m
Yes I get the account-id from there
b
the case that you have suggests not
m
you shouldnt need to fill in auth parameters if you are following netsuite’s tutorial >>> I see but I was thinking that something goes wrong and I tried to fill them directly
battk  [7:53 PM] the case that you have suggests not >>> I just hide my account id with “XXXX”
b
numbers dont have case
_sb1 does
m
I’m try to connect to my sandbox
b
and does your account pages show your id as 12345678_SB1 or 12345678_sb1
m
_SB1 in the Account id. I try with _sb1 or _SB1 but the error is the same
@battk now I’m able to connect … you are right _SB1 not _sb1
I don’t know first attempt with _SB1 went wrong …
thank you
312 Views