thefrontside / thefrontside/simulacrum

Server error when running multiple tests in parallel

Open
#232 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
117
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I started using this library to mock Auth0, but I discovered that an error occurs when multiple parallel sessions occur.

The simulacrum is executed with this command: npx @simulacrum/auth0-simulator --standalone --username=the.user@gmail --password=password

The browser stops on this URL: https://localhost:4400/login/callback (With this content: server error)

Is there a workaround for this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the documented npx @simulacrum/auth0-simulator command with multiple parallel sessions and observe the failure at https://localhost:4400/login/callback. Trace the server-side handling of that callback and determine a reproducible workaround or fix for concurrent sessions; the issue is complete when parallel sessions no longer produce the server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.