cancel
Showing results for 
Search instead for 
Did you mean: 

Could not get XCSRF token

former_member673166
Discoverer
0 Kudos

Hello,

I have problem with SysMonitor app for iPhone\iPad.  Connected mobile app for SolMan used GW.

I have error after when I click adding some system to the Favorites.

Error is "Could not get XCSRF token"

I insert in SCIF path "/default_host/sap/opu/" service name "odata" row "~CHECK_CSRF_TOKEN=0"

Thanks

Alex

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I'm experiencing the same issue and have already opened an OSS message, but have not had a response yet.

Former Member
0 Kudos

Any response to your customer message yet?

Former Member
0 Kudos

No, they weren't any help.  I turned on a trace for the sys monitoring app and noticed that it was trying to contact sap.com to access a template.  My ipad is on VPN and does not have internet access, so I believe that is why it is failing.

Former Member
0 Kudos

The fix is to NOT disable Cross-Site Request Forgery Protection.  We followed this cookbook: http://scn.sap.com/docs/DOC-35008.  Step 5 has you disable it.  The XCSRF token errors went away when we re-enabled.

Former Member
0 Kudos

hi,

I suppose your URL for gateway service prefix  path is wrong, can you check this guide in the sap note and correct.

Note 1786544 - SAP System Monitoring Mobile App iPhone/iPad Guide

Thanks

Jansi

former_member673166
Discoverer
0 Kudos

This note does not valid for my problem.

I have implemented all instructions earlier.

former_member673166
Discoverer
0 Kudos

Logs from mobile app:

SystemMonitoring LOGS / 1.1.4 2013-08-12 11:57:30 +0000 Device:Unknown iPhone iOS version: 6.1.4

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 920573000 | Message = <TechnicalSystemTableController: 0x1e509400>  [modelDidFailRequest] (UpdateFavoriteTechnicalSystem):<ModelLoadCallbackImpl: 0x1f8bb0c0>

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 918393000 | Message =  additional info key = NSLocalizedFailureReason value = Could not get X_CSRF_TOKEN for http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection? 

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 917661000 | Message =  additional info key = NSLocalizedDescription value = Could not get XCSRF token

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 916934000 | Message = Error failed domain = com.sap.backend.problem reason = 350

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 915934000 | Message = <SystemMonitoringModelService: 0x1f87d930>: Failed request [<SDMHttpRequest: 0x1f839d20>]: Error Domain=com.sap.backend.problem Code=350 "Could not get XCSRF token" UserInfo=0x1e5cd600 {NSLocalizedDescription=Could not get XCSRF token, NSLocalizedFailureReason=Could not get X_CSRF_TOKEN for http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection? }

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 914883000 | Message = [AddSystemToFavorites][commitOperationFail] 1.: DID FAIL operation AddSystemToFavorites

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 914008000 | Message = Could not get X_CSRF_TOKEN for http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection?

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 913202000 | Message =  Acquiring XSRF token from request http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection?, response code 200

| Level = 4 | Time = 12.08.2013, 17:51:05 | TimeNanoSec = 912275000 | Message = [AddSystemToFavorites]: Request 1 -th. http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection? finished successful

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 132643000 | Message = [AddSystemToFavorites]: Started 1 -th. request for operation AddSystemToFavorites

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 127606000 | Message = <TechnicalSystemTableController: 0x1e509400> [modelDidStartLoad] (UpdateFavoriteTechnicalSystem): <ModelLoadCallbackImpl: 0x1f8bb0c0>

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 126389000 | Message =  Do fetch request for XSRF with http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection?

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 124652000 | Message = <TechnicalSystemTableController: 0x1e509400> -- Start favorite operation for technical system [000C29A036801ED2ACAD80C9494991AC, X01~ABAP] for system group [000C29A036801ED2AFC109AD01B2BDEF] 

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 113535000 | Message = <SDMHttpBackend: 0x1e5b3260>: performOperation AddSystemToFavorites for URL http://{host}:8000/sap/opu/odata/AIGW/TECHMON/TechSysListCollection(QueryId='000C29A036801ED2AFC109AD01B2BDEF',Sid='X01',Type='ABAP') Gateway SP 3

| Level = 4 | Time = 12.08.2013, 17:51:04 | TimeNanoSec = 111437000 | Message =  -- Long press: start adding/removing technical system  [000C29A036801ED2ACAD80C9494991AC, X01~ABAP] at index 1 for query 000C29A036801ED2AFC109AD01B2BDEF to favorites