cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Mobile Service (MDK) Error: No CSFR Token in Response

robert_hunger
Participant
0 Kudos

Hallo MDK Team and Experts,

we have been receiving frequent errors with the message 'No CSRF token found in response'.

How can we fetch a new valid token ?

Many thanks in advance,

+ Robert

Accepted Solutions (0)

Answers (2)

Answers (2)

evanireland
Advisor
Advisor
0 Kudos

Sorry I do not have expertise on Gateway to be able to advise. I recommend opening a support incident for the Gateway system to get help with troubleshooting.

evanireland
Advisor
Advisor
0 Kudos

It would appear that the server returned, for some request, an HTTP status 403 together with header X-CSRF-Token: Required.

Then the CsrfTokenInterceptor (on the client) sent a request with header X-CSRF-Token: fetch, but the server did not response to that with a CSRF token.

So some troubleshooting may be needed for the back-end OData system to see why it sometimes asks the client to request a token, but then doesn't return one when asked.

robert_hunger
Participant
0 Kudos

Hi Even,

thanks for your answer and your explanation. Backend is a SAP- Gateway system .Do you have any idea where/how i have to inspect this system to find the reason for this strange behavior maybe some transaction, log etc. ?

Many Thanks,

Robert