Why exteranl suitelet doesnt accept the post reque...
# ask-stanley-ai
j
Why exteranl suitelet doesnt accept the post request in netsuite sandbox
c
AI generated answer (using internal Slack threads):
The issue with the external Suitelet not accepting POST requests in the NetSuite sandbox could be due to a few reasons: 1. User Agent Spoofing: NetSuite has implemented a security measure that requires a specific user agent to be set in the header of the HTTP request. If the user agent is not set or is incorrect, the request will be rejected. If you don't have control over the external system, you might need to use a middleware/proxy to set the User Agent. More details can be found in this NetSuite help article: [User Agent Suitelet](https://netsuite.custhelp.com/app/answers/detail/a_id/38695/kw/user%20agent%20suitelet) 2. HTTP 405 Method Not Allowed Error: This error occurs when the HTTP method (GET, POST, PUT, DELETE, etc.) used in the request is not supported by the resource. In the case of Suitelets, this could be due to the Suitelet not being configured to accept POST requests. More details can be found in this NetSuite help article: [Resolve Error: "HTTP 405 Method Not Allowed" in Suitelets](https://netsuite.custhelp.com/app/answers/detail/a_id/68637) 3. Internal URL Access: If the Suitelet is being called from a server-side script, it might be trying to access an internal URL. Server-side scripts do not have the cookie required to access internal URLs, which could result in the Suitelet not being called. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848693848
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842102051
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827697754
Please provide your feedback on this answer.
a
give permissions to external roles. set event type post