Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Can't join quiz #9

Open
wouterkool opened this issue Apr 16, 2020 · 6 comments
Open

Can't join quiz #9

wouterkool opened this issue Apr 16, 2020 · 6 comments

Comments

@wouterkool
Copy link

Hi! Thanks for this repo. It seems as if I have set it up succesfully, but I am unable to join a quiz. :(

I managed to get the webapp deployed at https://squizzy-sepia.now.sh/. However, I cannot access https://squizzy-sepia.now.sh/studio (does that indicate something is wrong?) as suggested by the readme, but I can access the studio via https://wouter.sanity.studio/ and create a quiz and play it.

However, if I go to the suggested link to join the quiz: https://squizzy-sepia.now.sh/match/9150a I get 'match cannot be found'. I can verify in the developer console that an XHR requests succeeds and it also seems to return a question so it seems an issue in the front-end. Do you have any suggestion how I can fix this?

Thanks!

@iriusmediapro
Copy link

Same issue here.

@tocchipinti
Copy link

I have this issue as well. Is there a way around this error?

@wouterkool
Copy link
Author

I managed to get it to work by making the dataset public in sanity... but I am not sure if it should be public?

@tocchipinti
Copy link

Mine is on public. I can see that XHR request your talking about. But with me it's failing. It gets an CORS error. I did however follow the last stap: sanity cors add https://your-name.now.sh --no-credentials And it did add a cors setting. Did you add the cors step manual or with the cli?

@iriusmediapro
Copy link

Dears, in my case the projectID in ./sanityClientConfig.js was wrong. I confused my userID with the projectID and that's why it was not working. So no bug at all in the code. Now it's working fine.

@wouterkool
Copy link
Author

Mine is on public. I can see that XHR request your talking about. But with me it's failing. It gets an CORS error. I did however follow the last stap: sanity cors add https://your-name.now.sh --no-credentials And it did add a cors setting. Did you add the cors step manual or with the cli?

I don't remember exactly t.b.h. ... I tried to follow the instructions carefully but I also added and removed again some settings manually. I found however that different domains where created (probably since project name squizzy was already taken), so you might need to play around a bit with that.

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

No branches or pull requests

3 participants