Skip to content

session token error suddenly while working with ios to parse server 2.4.2 #4581

Description

@dongalor

I'm having strange problem, here's cut of log from my IOS developer:

He issues new sessionToken via login, then suddenly this exact token in headers does
session token error:

https://gist.github.com/dongalor/f8388e7175882cda24e79fdc7f208896

== cut ==

LOGIN RESPONCE: signIn completed	2018.02.20 13:05:45
device: iPhone10,6 iOS: 11.20	2018.02.20 13:05:45
{
    result =     {
        about = "\U0425\U043e\U0442\U0435\U043b \U0436\U0435\U043d\U0438\U0442\U044c\U0441\U044f. \U0418 \U0436\U0435\U043d\U0438\U043b\U0441\U044f. ";
        authorRating = 701;
        banned = 0;
        bannedMessage = "";
        copyrightRating = 0;
        date = "2018-01-18T12:39:29.456Z";
        expertizeRating = 2;
        favoritesCount = 8;
        isAdmin = 0;
        isSubscribe = 0;
        journalsCount = 8;
        likeBlocksCount = 0;
        name = "\U0411\U0430\U043b\U044c\U0442\U0430\U0437\U0430\U0440";
        newsItemCount = 4;
        notPublishedNewsCount = 0;
        objectId = XWdb3bZEXg;
        photoUrl = "https://s3.eu-central-1.amazonaws.com/helpapp/BFAE23A4-631F-4A2C-9384-863556E37949.jpg";
        pictureRating = 1;
        publishedNewsCount = 3;
        publishingRating = 80;
        rating = 784;
        sessionToken = "r:0a6cd572b46d086cc6696bd3f1fbe46c";
        subscribersCount = 4;
        subscriptionsCount = 3;
        userRole = authorRating;
    };
}	2018.02.20 13:05:45
__________	2018.02.20 13:06:02
LOGIN REQUEST: getNewsItem	2018.02.20 13:06:28
X-Parse-Session-Token = r:0a6cd572b46d086cc6696bd3f1fbe46c	2018.02.20 13:06:28
<NSURLRequest: 0x1c001b180> { URL: https://example.com/parse/functions/getNewsItem }	2018.02.20 13:06:28
__________	2018.02.20 13:06:28
LOGIN RESPONCE: getNewsItem completed	2018.02.20 13:06:28

LOGIN REQUEST: getNewsPreviews	2018.02.20 13:15:50
X-Parse-Session-Token = r:0a6cd572b46d086cc6696bd3f1fbe46c	2018.02.20 13:15:50
<NSURLRequest: 0x1cc018970> { URL: https://example.com/parse/functions/getNewsPreviews }	2018.02.20 13:15:50
__________	2018.02.20 13:15:50
LOGIN RESPONCE: getNewsPreviews failure	2018.02.20 13:15:50
device: iPhone10,6 iOS: 11.20	2018.02.20 13:15:50
code: 209 message:invalid session token	2018.02.20 13:15:50

==cut==
How is it possible, that this token dies? I can't find this token via parse-dashboard Session table search :(

Activity

  1. dongalor commented on Feb 20, 2018

    @dongalor
    Author

    and i have a lot of records in my session table, which are old and i still can make requests with them in X-Parse-Session-Token header :(

  2. stale commented on Sep 18, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions