-
Hi, a simple Find request on the exact, same database throws an exception "Cannot authenticate" on FMS 19 and 20 while on FMS 18 works fine. Under the debugger, the response code is 503 (200 on FMS 18) at line 214 in function "RefreshTokenAsync" of file "FileMakerRestClient.cs". |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Are you able to successfully perform Data API queries using Postman or Curl? HTTP 503 is a Service Unavailable which is not related to FMData, that is a server configuration issue. The RefreshTokenAsync checks for 200 and 401 responses and if it doesn't get one of those it throws a "Could not authenticate" exception. |
Beta Was this translation helpful? Give feedback.
-
There was no issue really. FMS' Data API was left switched off. No problem with the code. |
Beta Was this translation helpful? Give feedback.
Are you able to successfully perform Data API queries using Postman or Curl? HTTP 503 is a Service Unavailable which is not related to FMData, that is a server configuration issue.
The RefreshTokenAsync checks for 200 and 401 responses and if it doesn't get one of those it throws a "Could not authenticate" exception.