Error then calling external api

From my forge app I’m calling an external APIs (here monday but got it with others as well) but I often get a 502 or a timeout which crash the application. Eg. Here I call the same method 11 times in a row

Am I the only one experiencing this or is it a known issue?

invocation: 29266b47ce9c400ebc9408c5efd2aaf3 index.handler
DEBUG   22:54:51.684  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433661555
INFO    22:55:08.733  18619710-972f-4b91-8a9d-be086598401b  502 Bad Gateway
DEBUG   22:55:08.733  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433738593
INFO    22:55:09.428  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:09.429  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433738819
INFO    22:55:10.113  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:10.113  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433738920
INFO    22:55:11.178  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:11.178  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433739044
INFO    22:55:11.821  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:11.821  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433739044
INFO    22:55:12.546  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:12.547  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433739177
INFO    22:55:13.325  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:13.325  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1433808199
INFO    22:55:13.984  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:13.985  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1451064193
INFO    22:55:14.720  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:14.720  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1451261820
INFO    22:55:15.373  18619710-972f-4b91-8a9d-be086598401b  200 OK
DEBUG   22:55:15.374  18619710-972f-4b91-8a9d-be086598401b  ** getMondayContract contractNo.: 1452789922
Function result will not be returned to the Forge platform, as the function did not complete within 25 seconds. In invocations outside tunnel, functions that exceed the time limit are terminated.
I
2 Likes

Hello, I can confirm on this as well. Been debugging the same error against api.monday.com for days but resulted in the same as OP.

  • the error only occurs when running through ATL Forge
  • we also tried replacing @forge/api fetch with axios library, still prompted with the same issue
  • to eliminate the possibility of this error being on monday.com side; we tried looping the same request using postman and terminal’s curl - 100% success rate

What is ATL Forge?