Skip to content

502 Bad Gateway error - wire-spy-hot-reload.json #36

@codevApp

Description

@codevApp

There is a problem when developing remotely and more than one browser or two users access the application at the same time.
I suspect the issue is caused by concurrent access to the JSON cache file from WireSpy. It results in a 502 Bad Gateway error.

SupportHotReloading.php

The default cache path is:
protected string $cachePath = 'framework/cache/wire-spy-hot-reload.json';

As a temporary solution, I modified it so that each user gets their own cache file in the boot method:
$this->cachePath = 'framework/cache/wirespy' . session()->getId() . '.json';

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