Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous at Bright Solutions GmbH commentedThis 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?
Comment #2
Chipie CreditAttribution: Chipie commentedThanks 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
Comment #3
Cheviot CreditAttribution: Cheviot commentedI 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.
Comment #4
Cheviot CreditAttribution: Cheviot commentedIm 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.
Comment #5
Galli CreditAttribution: Galli commentedSame 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!