Skip to content

Regression in parse server 2.3.3 getting {"code":209,"message":"invalid session token"} with master key sometimes #3516

Closed
@jbpringuey

Description

@jbpringuey

Issue Description

Version 2.3.3 created lot of production issues for us. It seems that some changes happened around how sessions are managed and users are cached.
One of the big problems is that our jobs started failing with {"code":209,"message":"invalid session token"} even if we use master key . Another problem is that one of our public cloud function which also use master key started failing with that same error also.

Rolling back to 2.3.2 fixes our issues.

Steps to reproduce

Write a job or a cloud function which uses masterKey and it will randomly (Have not had the chance yet to find exact steps) to fail.

Expected Results

Jobs using Master key in all queries and API should not throw invalid session token

Actual Outcome

Jobs using Master key in all queries and API should not throw invalid session token

Environment Setup

  • Server

    • parse-server version : 2.3.3
    • Operating System: Heroku Dyno (Linux I beleive)
    • Localhost or remote server? Heroku
  • Database

    • MongoDB version: 3.0.11
    • Storage engine: MMAPv1
    • Hardware: 40 GB SSD on AWS
    • Localhost or remote server? Heroku

Logs/Trace

An error happened during execution of mainJob: {"code":209,"message":"invalid session token"}

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