how to handle request time limits timing out
# ask-stanley-ai
g
how to handle request time limits timing out
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** The error
SSS_REQUEST_TIME_EXCEEDED
you're encountering indicates that the host you're trying to connect to has exceeded the maximum allowed response time. This is a limitation set by NetSuite and unfortunately, it's not configurable. If you're using SuiteScript to connect to a third-party server, you have a few options to handle this issue: 1. Reduce the response time: You need to figure out how to make the response from the third-party server take less time. This could involve optimizing the server or changing your request to that server so that it is able to respond in a timely manner. 2. Reduce the data returned: If your API has options to reduce the data it returns, this could help in reducing the response time. 3. Rethink the process design: If your script is reaching the timeout limit, you might need to rethink the process design. For example, if you're using RESTlets, the timeout limit is typically 40 seconds. If your script is reaching this limit, you might need to optimize your script or process. 4. Make the request outside of NetSuite: A heavier option is to make that request outside of NetSuite, for example, with a custom app or a low-code integration tool. Remember, the key is to ensure that the response from the third-party server is received within the timeout limit set by NetSuite.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817368
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814725637
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807090044
Please provide your feedback on this answer.