Hi @vincenttalenta,
Welcome to Google Cloud Community!
There are a few possible reasons why your requests.post() calls might be timing out on Google App Engine (GAE), but requests.get() calls are working fine:
- GAE has different timeouts for different types of requests. By default, GAE will timeout requests after 10 minutes, but POST requests have a shorter timeout of 60 seconds.
- Your POST request might be hitting a rate limiter.
- Your POST request might be sending a large body.
To troubleshoot the issue, you can try the following:
- Increase the timeout for your POST requests.
- Check the server logs for any errors.
- Reduce the size of the body of your POST requests.
If you are still having problems, you can contact Google Cloud support for assistance.
Here are some additional tips for using requests on GAE:
- Use a timeout on all of your requests, even GET requests.
- Use a connection pool to reduce the overhead of creating and closing connections to the server.
- Use a retry mechanism to retry requests that fail due to network errors or other transient errors.