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

"gistContent.find is not a function" #1

Closed
1aozhang opened this issue Jan 26, 2023 · 3 comments
Closed

"gistContent.find is not a function" #1

1aozhang opened this issue Jan 26, 2023 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@1aozhang
Copy link

Hi

I deployed this project on deno deploy with required ENV set, and corresponding gist (links.json) created, but I get the following response:

"gistContent.find is not a function"

Any idea?

@not-ivy
Copy link
Owner

not-ivy commented Jan 29, 2023

can you go to the network tab in devtools and check the data returned for the gist fetch request?

@not-ivy
Copy link
Owner

not-ivy commented Jan 29, 2023

sorry; i forgot the request is made on the server :p

in that case, please make sure that the gist id and github token is provided correctly. the github token is classic instead of fine grained, and it should have the gist scope checked

@not-ivy not-ivy added bug Something isn't working question Further information is requested labels Jan 29, 2023
@1aozhang
Copy link
Author

Hi

I figured it out by looking into the code and turns out
the gist assigned should be named as links.json and should be an empty json array []

now it works fine.

Thanks and regards.

@not-ivy not-ivy closed this as completed Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants