Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service worker breaking DELETE actions #2

Open
heratyian opened this issue Apr 24, 2024 · 1 comment
Open

Service worker breaking DELETE actions #2

heratyian opened this issue Apr 24, 2024 · 1 comment

Comments

@heratyian
Copy link
Contributor

@thierrychau Can you share your screenshot?

@thierrychau
Copy link

This is the log from my server:

2024-04-23T21:40:34.081878+00:00 heroku[router]: at=info method=GET path="/assets/pwa/companion" host=pensieve.cc request_id=49dd64f0-9b34-4fda-931f-7ab585ffd888 fwd="2a09:bac3:746b:8c::e:29d,172.70.100.32" dyno=web.1 connect=0ms service=2ms status=404 bytes=1966 protocol=https
2024-04-23T21:40:34.293774+00:00 app[web.1]: I, [2024-04-23T21:40:34.293645 #2]  INFO -- : [23dd803b-e782-40df-9629-87a42bc5e563] Started GET "/memories.geojson" for 172.70.100.32 at 2024-04-23 21:40:34 +0000
2024-04-23T21:40:34.297570+00:00 app[web.1]: I, [2024-04-23T21:40:34.297492 #2]  INFO -- : [23dd803b-e782-40df-9629-87a42bc5e563] Processing by MemoriesController#index as GEOJSON
2024-04-23T21:40:34.320388+00:00 app[web.1]: I, [2024-04-23T21:40:34.320263 #2]  INFO -- : [23dd803b-e782-40df-9629-87a42bc5e563] Completed 200 OK in 23ms (Views: 3.2ms | ActiveRecord: 5.9ms | Allocations: 9532)
2024-04-23T21:40:34.321777+00:00 heroku[router]: at=info method=GET path="/memories.geojson" host=pensieve.cc request_id=23dd803b-e782-40df-9629-87a42bc5e563 fwd="2a09:bac3:746b:8c::e:29d,172.70.100.32" dyno=web.1 connect=0ms service=29ms status=304 bytes=1173 protocol=https
2024-04-23T21:40:35.435508+00:00 app[web.1]: I, [2024-04-23T21:40:35.435400 #2]  INFO -- : [7ca7faf9-19de-485f-9e36-5c4f1a378852] Started GET "/users/sign_out" for 172.70.100.32 at 2024-04-23 21:40:35 +0000
2024-04-23T21:40:35.435958+00:00 app[web.1]: F, [2024-04-23T21:40:35.435898 #2] FATAL -- : [7ca7faf9-19de-485f-9e36-5c4f1a378852]   
2024-04-23T21:40:35.435959+00:00 app[web.1]: [7ca7faf9-19de-485f-9e36-5c4f1a378852] ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
2024-04-23T21:40:35.435960+00:00 app[web.1]: [7ca7faf9-19de-485f-9e36-5c4f1a378852]   
2024-04-23T21:40:35.436946+00:00 heroku[router]: at=info method=GET path="/users/sign_out" host=pensieve.cc request_id=7ca7faf9-19de-485f-9e36-5c4f1a378852 fwd="2a09:bac3:746b:8c::e:29d,172.70.100.32" dyno=web.1 connect=0ms service=2ms status=404 bytes=1966 protocol=https
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
Connection to log stream failed. Please try again later.

Noticed this error for logging out, but other delete actions were broken in production only (works in development).
Deactivating service_worker works (either not import the companion or not implementing it at all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants