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

Implement function to throw error when channel name is not specified. #2

Open
sakshi-dhamija opened this issue Oct 1, 2021 · 8 comments
Assignees
Labels

Comments

@sakshi-dhamija
Copy link
Owner

Currently, if we try to create a channel without giving any name to it, it will generate a string like # !members-Z8TBhk-SmUjX4WQbQVfLWPXySbfsHsIEFLpiL2aRNMY as Channel Name. Hence, implement the function to throw an error when name is not specified.

@gurpreet-legend
Copy link

gurpreet-legend commented Oct 1, 2021

Can I work on this issue ? And also I am not able to sign in.

@sakshi-dhamija
Copy link
Owner Author

Hi @gurpreet-legend, yes you can take up this issue.
Regarding the sign-in problem, did you run both client and server before trying to sign in? Also, to get more clarity, open the developers' console to check the error message. If you still face the problem, let me know!

@gurpreet-legend
Copy link

Hi @gurpreet-legend, yes you can take up this issue. Regarding the sign-in problem, did you run both client and server before trying to sign in? Also, to get more clarity, open the developers' console to check the error message. If you still face the problem, let me know!

Yes, mam, I have run both client and server separately.
I am getting this error on the server-side, when I try to Sign in :
[SiteError: This method can only be used server-side using your API Secret, use client = stream.connect(key, secret);]

@sakshi-dhamija
Copy link
Owner Author

sakshi-dhamija commented Oct 1, 2021

Okay, I understood the issue. You need to create an account on stream and add another file containing credentials (hidden on Github). I'll add the detailed steps in the Contributing guide for this.

@gurpreet-legend
Copy link

Mam, please do update the Contributing.md file, as I have created my stream account as per your instructions

@sakshi-dhamija
Copy link
Owner Author

I have updated the readme for installation steps, which will clear your issue.

@gurpreet-legend
Copy link

gurpreet-legend commented Oct 3, 2021

@secrashi mam, I have set up the environment variables as per your instructions but I am still getting these two errors on the server-side :
Error 1: StreamChat error code 2: QueryUsers failed with error: "Chat either expired or not activated. Check https://getstream.io/pricin at StreamChat.errorFromResponse (C:\Users\lostl\OneDrive\Desktoodules\stream-chat\dist\index.js:6147:15)

Error 2 :
image

And moreover, there was a redundant ads variable in the catch block in server/controllers/auth.js which was giving an error before, I removed that, it was not necessary right ?
image

@sakshi-dhamija
Copy link
Owner Author

@secrashi mam, I have set up the environment variables as per your instructions but I am still getting these two errors on the server-side :

Hi Gurpreet, Go to stream chat, open your app> chat>overview and add this link https://connect-intellect.herokuapp.com to webhooks, if the problem still occurs let me know:

And moreover, there was a redundant ads variable in the catch block in server/controllers/auth.js which was giving an error before, I removed that, it was not necessary right ?

Ya, that must have been added by mistake.

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

No branches or pull requests

2 participants