If I try to connect with the iOS App to erpal, I get this error message:

Fehler
Der Vorgang konnte nicht abgeschlossen werden.
(kDrupalSessionErrorDomain-Fehler 1002.)

Any ideas?

Comments

Anonymous’s picture

This error code means that the app received an invalid response from ERPAL while logging in or retrieving the CSRF token. The main cause is an HTTP status code other than 200. If your ERPAL is not running via HTTPS you need to add the 'http://' prefix when logging in, but getting this wrong usually causes a different error message. Are the services enabled in ERPAL (module erpal_projects_service)? Do you see anything in your server log files?

Chipie’s picture

Thanks for the prompt reply. I have added the 'http://' prefix and the services are are enabled.

Seems that the server replies:

HTTP/1.1 403 Forbidden

when accessing

POST /rest/projects/user/login HTTP/1.1

Cheviot’s picture

I save the same regardless if I use no HPPT(S)://, HTTP:// or HTTPS:// in english (kDrupalSessionErrorDomain-Error 1002.)
The message appears on all Erpal installations on the same server, the modules 'services' are switched on.

-sslv3 is depreciated, TLSv2 is the default down to TLSv1. I cannot see what the erpal app is exactly doing during a handshake,

On the server I see a log entry "POST /rest/projects/user/login HTTP/1.1" 200

on the app also very occasionally a drupalsessionservernotreachable message appears but not always. The sites fine to access via browsers and very quick.

Cheviot’s picture

Im using iOS. I uninstalled Erpal and then reinstalled it again in iTunes. Now it works.
If things go wrong with accessing the domain (when you have a 200 response), then use this method first see if it resolves that way.

Galli’s picture

Same problem here. I tried Erpal 7.x-2.2 and 7.x-2.x-dev (2015-Sep-18) with iOS (App Version 1.2). Tried with and without 'http://'.
In my Drupal reports I get the message 'Session opened for username', but on the app I just get 'Fehler Der Vorgang konnte nicht abgeschlossen werden. (kDrupalSessionErrorDomain-Fehler 1002.)'

I tried to login into the demo accounts, too. None of them worked. And finally I tried to log into the demo manually - same error.

Any ideas? Thanks!