Andrew Nguyen
06/03/2025, 4:56 AMCeligo AI
06/03/2025, 4:56 AMAI generated answer (using internal Slack threads):The
INVALID_LOGIN_ATTEMPT
error you're encountering when trying to call a restlet with an OAuth 2.0 token, despite being able to successfully call a REST endpoint with the same token, could be due to a number of reasons. Here are some potential causes and solutions:
1. Incorrect Account ID: Ensure that the account ID matches the value from your NetSuite account, including capitalization. The account ID is case sensitive and should be exactly as it appears in your NetSuite account.
2. Incorrect Authorization Settings: Check your OAuth 1.0 authorization settings, including the Advanced section. Make sure that the 'Add authorization data to' option is set to 'Request Headers'. Also, ensure that the collection method is set to POST if that's what your RESTlet is expecting.
3. Incorrect Script Deployment Settings: Ensure that the script deployment's status is released and the script audience is correctly set. The script audience should include the user/role you are using for authorization. If you're trying to fix an error, you might want to set the script audience to all roles.
4. Incorrect Realm ID: The realm ID should be the same as your account ID and it should be in caps. If your account is in sandbox, the realm ID should have an underscore, not a hyphen.
5. Token-Based Authentication Not Enabled: Ensure that you have enabled token-based authentication from the enable features in your NetSuite account.
6. Incorrect Role Settings: The role associated with the token should have the Log in using Access Tokens
permission.
Remember, the deployment audience should be set correctly, and the only permission needed is Log in using Access Tokens
. Even if the role might not be able to do anything useful, your login attempt can succeed if this permission is set.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/03/2025, 4:56 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844360828
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842623115
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842394888
Celigo AI
06/03/2025, 4:56 AM