Open nicitaacom opened 1 year ago
I can't review your example site as it appears to require login - are you able to share a public example?
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 -
⨯ app/page.tsx (10:10) @ Home
⨯ Error: no userId found in page.tsx
at Home (./app/page.tsx:17:15)
at stringify (<anonymous>)
8 |
9 | if (!userId) {
> 10 | throw new Error("no userId found in page.tsx")
| ^
11 | }
12 |
13 | return (
Are you able to add logging to your code, or enable Pusher.LogToConsole = true
to show Pusher logs?
When running the app you shared I get a different error -
Are you able to add logging to your code, or enable
Pusher.LogToConsole = true
to show Pusher logs?
I got no error when I pnpm dev
in terminal
This project has really bad docs
Where I should write this?
This should be specified in any file you import the pusher-js library. So In this case in the app/libs/pusher.ts
. You may need to change the import statement to import Pusher from 'pusher-js';
I got no error when I pnpm dev in terminal
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? I'm free from 10:00 till 20:00 CET
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
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
When
import Pusher from 'pusher-js';
and Pusher.logToConsole = true
I got this
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.
Clicking the auth.1
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 If you want to help somehow just send YouTube video link or time when you are free to talk and your discord
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.
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)