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

Cannot find SECRETS.json. Anyone else? #33

Open
hrosdei opened this issue Jul 24, 2016 · 9 comments
Open

Cannot find SECRETS.json. Anyone else? #33

hrosdei opened this issue Jul 24, 2016 · 9 comments

Comments

@hrosdei
Copy link

hrosdei commented Jul 24, 2016

Running app.py is giving me an issue. I made a file named SECRETS.json via text editor in the same folder as the app.py, and input a token/id. But the code returns "Couldn't find SECRETS.json. Did you create it and put your Facebook user id and auth token in it?" What am I doing wrong?

@KillianDavitt
Copy link

Did you look at the EXAMPLE.json file? This gives an example of exactly how your SECRETS.json file should look. Might be your issue.

@hrosdei
Copy link
Author

hrosdei commented Jul 24, 2016

Thanks Killian. That worked for me. But I ran into another problem:
When I go into localhost:5000, I encounter this error:
UnicodeEncodeError: codec can't encode character '\U0001f512' in position 91: illegal multibyte sequence

How could I go about fixing this issue?

@KillianDavitt
Copy link

Unsure why you have that issue.

Have you edited the api.py file?

@Mohamed3on
Copy link

I'm also having this issue. I did exactly like you and created a SECRETS.json file in the same directory with the token & id. still the app couldn't find it.

@hrosdei
Copy link
Author

hrosdei commented Jul 24, 2016

@KillianDavitt
Fixed the issue by getting rid of the \U0001f512, which was an unnecessary emoji in api.py.

@Mohamed3on
I fixed my SECRET.json issue by dragging the folder out to my Desktop. Who knows why or how, but it worked for me when I did that.

@hrosdei
Copy link
Author

hrosdei commented Jul 24, 2016

Nevermind--the encoding problem seems to persist. It appears that I can't just get rid of some emojis in api.py and call it a day. Anyone run into a similar encoding issue?

@txaiwieser
Copy link

edit SECRET.json and remove the comment deleting the first line

@Mohamed3on
Copy link

So I fixed the secrets issue and I'm running into the \U0001f512 problem now too! Sigh.

@cuteredpwnda
Copy link

On Windows you gotta type: chcp 65001 to enable utf-8. Worked for me.

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

No branches or pull requests

5 participants