Bulk rest api calls that fails with DB connection errors is returning a 403 response code to the client.
1. Content response is even more misleading :
2. Jira application logs indicates DB connection error from too many request within a short period of time.
Uncaught exception thrown by REST service: org.ofbiz.core.entity.GenericDataSourceException:
Unable to establish a connection with the database. (PSQL_TOO_MANY_CONNECTIONS Exception already occurred in this workcontext, skipping next getConnection)
Steps to Reproduce
- Call REST APIs in continuous succession
If the rate limit is hit, the status 429. Throttling limit state should be returned in headers like here
HTTP 403 response code returned with the following content