Austin Cai
04/16/2022, 1:36 AM401 Invalid login attempt.
error while trying to submit the very first request. When I check the Login Audit Trail Search within NetSuite, I don’t see any trace of my login attempt. Any pointers on how to debug this issue?battk
04/16/2022, 1:41 AMAustin Cai
04/16/2022, 1:44 AMSetup > User/Roles > Access Tokens
.
Am I doing something incorrect here?battk
04/16/2022, 1:45 AMAustin Cai
04/16/2022, 1:54 AM{
"type": "<https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2>",
"title": "Unauthorized",
"status": 401,
"o:errorDetails": [
{
"detail": "Invalid login attempt.",
"o:errorCode": "INVALID_LOGIN_ATTEMPT"
}
]
}
Do you know what might be causing this behavior?battk
04/16/2022, 1:54 AMAustin Cai
04/16/2022, 2:05 AMbattk
04/16/2022, 2:08 AMAustin Cai
04/16/2022, 2:09 AMAuthorization: OAuth realm="80***_SB1",oauth_consumer_key="12967***",oauth_token="a4b2c****",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1650074460",oauth_nonce="SNFdZTTO161",oauth_version="1.0",oauth_signature="7pT9m***"
Is the oauth_token
not the same thing as the token ID?battk
04/16/2022, 2:10 AMAustin Cai
04/16/2022, 2:11 AMOPTIONS <https://8025440-sb1.app.netsuite.com/services/rest/*>
.battk
04/16/2022, 2:15 AMAustin Cai
04/16/2022, 2:20 AMbattk
04/16/2022, 2:20 AMAustin Cai
04/16/2022, 2:35 AMREST_SERVICES
.battk
04/16/2022, 2:42 AMAustin Cai
04/16/2022, 2:45 AM80****0_SB1
and it matches the link you sent. My consumer key has letters a bit further down: 12967c741f***
.battk
04/16/2022, 2:53 AMAustin Cai
04/16/2022, 5:00 AMhttps://***-<http://sb1.app.netsuite.com/services/rest/*|sb1.app.netsuite.com/services/rest/*>
instead of https://***-<http://sb1.suitetalk.api.netsuite.com/services/rest/*|sb1.suitetalk.api.netsuite.com/services/rest/*>
.