-
Notifications
You must be signed in to change notification settings - Fork 374
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
BUG - Error: Connection closed. (active status - Code With Antonio) #778
Comments
I can't review your example site as it appears to require login - are you able to share a public example? |
Sure here it is - https://github.com/nicitaacom/acc2-pusher_active_status |
When running the app you shared I get a different error -
Are you able to add logging to your code, or enable |
This should be specified in any file you import the pusher-js library. So In this case in the
I also get no error when I run the terminal command, but when visiting localhost:3000 as the terminal output suggests I get the error I shared. |
Thank you for your answer - how you looking to call up in discrod and solve this problem much quicker? |
Dear pusher/pusher-js,
This is a confirmation that we received your email and registered it as
ticket #725487099. You can always reply to this email if you want to add
additional information.
Kinds regards,
Team YukTam -M-U
|
10.12.2023.at.09-38-49.mp4 |
Dear pusher/pusher-js,
This is a confirmation that we received your email and registered it as
ticket #725487576. You can always reply to this email if you want to add
additional information.
Kinds regards,
Team YukTam -M-U
|
Dear pusher/pusher-js,
This is a confirmation that we received your email and registered it as
ticket #725487890. You can always reply to this email if you want to add
additional information.
Kinds regards,
Team YukTam -M-U
|
The internal server error from your video is coming from your auth process (the error shows auth.1 as the originator of the error), you may need to add logging to identify why this is. Clicking the auth.1 in the browser console will even take you to the file that is causing the 500 error. |
What? auth.1? where? Also this answer don't solve problem cause I see nothing to do from my side to fix that If you know how to fix it it would be nice when you provide YouTube video like where you fix it in my repositoty I created as minimal example or we can talk in discord If you don't want to help just let me know |
Your replication environment didn't work so I can't share a video. The auth.1 is shown in the browser debug console, on the right of the error. |
ok and how it help me to fix this issue? |
As before, you may need to add logging to the auth process so you can see what the precise issue is and why it is being thrown |
I got a bug by using pusher
I want to create 'Active' 'Inavtive' functionality
When user active (on site) - I see 'Active' when user closed site I see 'Inactive'
Lets me know how you understood what I want
Note
This issue may be converted to discussion but I'm still think that it something with pusher because previouly it worked without errors
For example here with pages directory - https://github.com/nicitaacom/17_messenger-clone
The issue is I always get 'Inactive' (false) or error 'Connection closed' in my console
If you did similar functionalify - please send github repository
For me codesandbox doesn't work (I create minimal example and then when I leave page and open codesandbox again it doesn't opens) - other platforms are terrible becasue no 'open in VS code' button
Now I have in 'app/api/pusher/auth.ts' this code (tried with 'pages/api/pusher/auth.ts' - I got error about cookies
I have this store with zustand
And I have this hook useActiveChannel
In MessagesHeader I want to show active status but it always 'Inactive' (false)
The text was updated successfully, but these errors were encountered: