API2 Calls are suddenly failing? Anything going on

All my API calls are suddenly failing. Anything going on with API 2?. I push invoices in every night. Suddenly not working so I’m not getting Sales Invoices out.

{
  "body": "<h1>Internal Error</h1><hr />Manager 26.4.16.3389<hr /><pre>ManagerServer.MapApiExtension+HttpRequestException: Exception of type 'ManagerServer.MapApiExtension+HttpRequestException' was thrown.\n   at ManagerServer.MapApiExtension.GetUserContext(HttpRequest httpRequest) in /home/runner/work/Manager/Manager/ManagerServer/MapApiExtension.cs:line 27\n   at ManagerServer.HttpHandlers.Api2.Api2.ProcessRequest() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Api2/Api2.cs:line 53\n   at ManagerServer.HttpServer.<>c.<<Build>b__0_9>d.MoveNext() in /home/runner/work/Manager/Manager/ManagerServer/HttpServer.cs:line 233\n--- End of stack trace from previous location ---\n   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)\n   at ManagerServer.Authentication.UserResolutionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/Manager/Manager/ManagerServer/Authentication/UserResolutionMiddleware.cs:line 33\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)</pre><p><a href=\"javascript:window.history.back();\">Go back</a>",
  "headers": {
    "Nel": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}",
    "Date": "Thu, 16 Apr 2026 14:37:50 GMT",
    "CF-Ray": "9ed3ee22de9ed378-FRA",
    "Pragma": "no-cache",
    "Server": "cloudflare",
    "Expires": "-1",
    "alt-svc": "h3=\":443\"; ma=86400",
    "Report-To": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=wRkoUVnMAbKVXxcU7o1VSO8l8SJFBGpMmDzjqpEv9h0WNXlziPcu1kt4WAyyNAf4%2BkWj7vyDPj2f95rPQRyt26rdN7TqZtGDPlNcdpmdQuo6pP41xS1CX9Jo1sNKOUpKrn6GD4ly\"}]}",
    "served-by": "cus_RTQ631yhsiPEri",
    "Connection": "keep-alive",
    "Content-Type": "text/html",
    "Cache-Control": "no-cache,no-store",
    "CF-Cache-Status": "DYNAMIC",
    "Transfer-Encoding": "chunked",
    "x-manager-exception": "HttpRequestException"
  },

All my API calls are also failing too. This is from a couple of hours. Also I cannot access the API TAB from Settings/Access Tokens. It comes back to the Businesses screen

A Sample Error:
(venv) vsi@Mac mdash % curl -X ‘GET’ ‘https://atgt.manager.io/api2/sales-invoices?pageSize=200’ -H ‘accept: application/json’ -H ‘X-API-KEY: $MANAGER_API_KEY’

Internal Error


Manager 26.4.16.3389
ManagerServer.MapApiExtension+HttpRequestException: Exception of type 'ManagerServer.MapApiExtension+HttpRequestException' was thrown.

at ManagerServer.MapApiExtension.GetUserContext(HttpRequest httpRequest) in /home/runner/work/Manager/Manager/ManagerServer/MapApiExtension.cs:line 27

at ManagerServer.HttpHandlers.Api2.Api2.ProcessRequest()

at ManagerServer.HttpServer.<>c.<b__0_9>d.MoveNext() in /home/runner/work/Manager/Manager/ManagerServer/HttpServer.cs:line 233

-– End of stack trace from previous location —

at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)

at ManagerServer.Authentication.UserResolutionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/Manager/Manager/ManagerServer/Authentication/UserResolutionMiddleware.cs:line 33

at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Go back% (venv) vsi@Mac mdash %

I am using Cloud Version: **26.4.16.3389

Only this works:**
curl -s -H “accept: application/json” -H “X-API-KEY: $MANAGER_API_KEY” “https://atgt.manager.io/api2” | python3 -m json.tool | head -50

Similar problems here.

“.create()” fails silently (on interAccountTransfers at least). That is, the code seems to run without problem but no transactions are created. This is in the Python manager-api module.

Also, the “skip” parameter in, for example, "http://localhost:55667/api2/inter-account-transfers?sortByDesc=true&sortBy=Date&skip=50&pageSize=50” suddenly seems to be ignored (i.e., is treated as 0).

I am on the latest version (26.4.16.3389).

This has been resolved in the latest version (26.4.17.3390)

Still down I am getting error 500 3 hours now

I upgraded and still nothing.

- End of stack trace from previous location —

at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)

at ManagerServer.Authentication.UserResolutionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/Manager/Manager/ManagerServer/Authentication/UserResolutionMiddleware.cs:line 33

at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Go back

500**%**

When will version (26.4.17.3390) be deployed on cloud? It is still on 26.4.16.3389

I appear to now have version 26.4.17.3393. Still failing.

{
  "body": "<h1>Internal Error</h1><hr />Manager 26.4.17.3393<hr /><pre>ManagerServer.MapApiExtension+HttpRequestException: Exception of type 'ManagerServer.MapApiExtension+HttpRequestException' was thrown.\n   at ManagerServer.MapApiExtension.GetUserContext(HttpRequest httpRequest) in /home/runner/work/Manager/Manager/ManagerServer/MapApiExtension.cs:line 27\n   at ManagerServer.HttpHandlers.Api2.Api2.ProcessRequest() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Api2/Api2.cs:line 53\n   at ManagerServer.HttpServer.<>c.<<Build>b__0_9>d.MoveNext() in /home/runner/work/Manager/Manager/ManagerServer/HttpServer.cs:line 233\n--- End of stack trace from previous location ---\n   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)\n   at ManagerServer.Authentication.UserResolutionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/Manager/Manager/ManagerServer/Authentication/UserResolutionMiddleware.cs:line 33\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)</pre><p><a href=\"javascript:window.history.back();\">Go back</a>",
  "headers": {
    "Nel": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}",
    "Date": "Fri, 17 Apr 2026 01:47:34 GMT",
    "CF-Ray": "9ed7c334bb65dbc7-FRA",
    "Pragma": "no-cache",
    "Server": "cloudflare",
    "Expires": "-1",
    "alt-svc": "h3=\":443\"; ma=86400",
    "Report-To": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=AAkdYq7iUJrF7waT2d9R98tfuEuMjPSFmivZohwlxYwxSrt5scaEcozq06rQz%2B3%2F2kPrJDoY9kmTdWt4G%2FM%2FJyLMFCuPGzOtFLpJfEexvxLSTscDNC0L4PV9ZBhDlDW%2BdZaqa8NR\"}]}",
    "served-by": "cus_RTQ631yhsiPEri",
    "Connection": "keep-alive",
    "Content-Type": "text/html",
    "Cache-Control": "no-cache,no-store",
    "CF-Cache-Status": "DYNAMIC",
    "Transfer-Encoding": "chunked",
    "x-manager-exception": "HttpRequestException"
  },

I’m getting behind on invoicing!

The current version on Cloud is 26.4.17.3393 but the API2 calls are still failing

same here. Version 26.4.17.3390

@lubos API2 calls still do not work. It is nearly 24 hours. API2 calls are part of our business flow and if they do not work, it is as if nothing is working. Also, soon (in the next few months) we will have to submit uploads for E-invoicing (in UAE) which also will use API2 interface and this will be a major failure for us. Please update us with what is happening and any timeframe for the fix.

@Shankar_Iyer the issue should be resolved in the very latest version (26.4.17.3394)

thanks @lubos, its working. Legend! Have a great weekend