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

Report Twitter authorization errors. #43

Closed
ArthurBoschet opened this issue May 22, 2020 · 43 comments
Closed

Report Twitter authorization errors. #43

ArthurBoschet opened this issue May 22, 2020 · 43 comments

Comments

@ArthurBoschet
Copy link

Hello,

Thank you for sharing this app. However, I noticed that none of the buttons (datasets/ add/ settings and especially link twitter account) respond when being clicked. Is there anyway to fix this issue?

@edsu
Copy link
Member

edsu commented May 22, 2020

Yes, they only start to work after you've linked your twitter account. So it sounds like that isn't working for you?

@ArthurBoschet
Copy link
Author

Yes, nothing happens when I click the Link Twitter Account button.

@edsu
Copy link
Member

edsu commented May 22, 2020

Ok, we've noticed this on Windows10 but not on OS X before. If you are able, it would help us a great deal if you could open a terminal window, and run the Hydrator manually by typing this and enter:

/Applications/Hydrator.app/Contents/MacOS/Hydrator

Then if you could reset your app and try to link again? Then look and see if there are any error messges in the terminal console that you could copy/paste here into this issue ticket? Thanks!

@edsu
Copy link
Member

edsu commented May 22, 2020

For more context this seems to be related to #38 and #27.

@ArthurBoschet
Copy link
Author

After doing the above procedure this is the error message that is shown:

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check electron/electron#18397
{
statusCode: 401,
data: '{"errors":[{"code":32,"message":"Could not authenticate you."}]}'
}

@edsu
Copy link
Member

edsu commented May 22, 2020

Thanks! If it's not too much trouble would it be possible to see a screenshot?

@ArthurBoschet
Copy link
Author

Screen Shot 2020-05-22 at 4 52 23 PM

There is the screen shot of the command prompt

Screen Shot 2020-05-22 at 4 54 50 PM

And here is the app where nothing happens when I click the Link twitter Account and get this error

@edsu
Copy link
Member

edsu commented May 22, 2020

Perfect! Let me see if I can do a release that will display more information about what might be going on.

@ArthurBoschet
Copy link
Author

Thank you!

@edsu
Copy link
Member

edsu commented May 22, 2020

Ok, I don't think this will fix your problem but it may provide some more details about what might be going wrong. Can you install v0.0.10 and run it manually again as you did before, and take a screenshot of the terminal window? Thank you!

https://github.com/DocNow/hydrator/releases/tag/v0.0.10

@ArthurBoschet
Copy link
Author

Screen Shot 2020-05-22 at 6 13 28 PM

the error message seems to change with: "error when getting Twitter auth url"

@edsu
Copy link
Member

edsu commented May 22, 2020

Interesting! That is an error message coming back from Twitter saying you aren't even allowed to have a URL to grant Hydrator permission to use your account.

Are you on a VPN by any chance? What ISP are you using?

@ArthurBoschet
Copy link
Author

No I am not a VPN. The ISP I use is a French one called SFR.

@edsu
Copy link
Member

edsu commented May 22, 2020

I don't suppose you have a VPN that you could try from another network do you? As you can tell I'm grasping at straws as to why this would work for others but not you.

@ArthurBoschet
Copy link
Author

Yeah thank you! I tried using a VPN to spoof my location to the US in case the cause of this problem was a difference in the legislation regarding access to data based on location. But that did not seem to solve the problem. I still got the exact same error message.

@edsu
Copy link
Member

edsu commented May 22, 2020

Wow, ok. Just to make sure, could you reinstall and see if that helps?

@edsu edsu changed the title Link twitter account not working on macOS Catalina/Mojave Report Twitter authorization errors. May 25, 2020
@MaryamTaeb
Copy link

Hey, I am in the US and tried to install the hydrator but I got the exact same errors as mentioned above. I followed the steps you mentioned but it didn't resolve my issue either. Were you able to solve this issue by any chance?

@edsu
Copy link
Member

edsu commented May 29, 2020

What platform are you on @MaryamMoghadam?

@MaryamTaeb
Copy link

@edsu macOS Catalina Version 10.15.4

@edsu
Copy link
Member

edsu commented May 29, 2020

Weird. What ISP are you on? We havent been able to find a cause for why some people are experiencing this.

@MaryamTaeb
Copy link

@edsu It's XFINITY.

@edsu
Copy link
Member

edsu commented May 29, 2020

Do you have any ability to check when you computer is connected to another network?

@MaryamTaeb
Copy link

Yes I connected to two different Campus networks using VPN and ran hydrator manually but no luck.

@edsu
Copy link
Member

edsu commented May 30, 2020

Thanks for checking @MaryamMoghadam. Did you try the advice above to open a terminal window and see what the error message was?

...

If you are able, it would help us a great deal if you could open a terminal window, and run the Hydrator manually by typing this and enter:

/Applications/Hydrator.app/Contents/MacOS/Hydrator

Then if you could reset your app and try to link again? Then look and see if there are any error messages in the terminal console that you could copy/paste here into this issue ticket? Thanks!

@tencups
Copy link

tencups commented May 30, 2020

I also receiving the same error.

@edsu
Copy link
Member

edsu commented May 31, 2020

@tencups what operating system are you using?

@tencups
Copy link

tencups commented May 31, 2020 via email

@edsu
Copy link
Member

edsu commented May 31, 2020

Ahah! Thank you, it never occurred to me that people would build themselves without getting developer keys. I think you have solved this!

@MaryamMoghadam are you building from source too?

@SebasAas
Copy link

SebasAas commented Jun 9, 2020

Hello! I have the same problem, when i click the "Link Twitter Account" button.

getting Twitter auth url
error when getting Twitter auth url
{
statusCode: 401,
data: '{"errors":[{"code":32,"message":"Could not authenticate you."}]}'
}

SO: I test it in 2 diferents PC both with Windows 10, and i have the same problem in both

@edsu
Copy link
Member

edsu commented Jun 9, 2020

Sorry to hear that @SebasAas. Did you build the app from source or use an installer?

@SebasAas
Copy link

SebasAas commented Jun 9, 2020

Hello @edsu , from source, i clone the repo and install via command prompt.

@edsu
Copy link
Member

edsu commented Jun 9, 2020

@SebasAas Great! I apologize, our docs weren't really clear on what you need to do when building from source.

I've just added a note to the Develop README indicating that to build the Hydrator you need to go to register as a developer on Twitter, create an app, and put the app keys in a .env file in your project directory:

But, you should be able to download a prebuilt version from our releases page?

https://github.com/DocNow/hydrator/releases/tag/v0.0.11

The prebuilt version includes the Hydrator app's official keys for the Documenting the Now project. So you are not required to register as a developer and create an app. We did have an issue with our v0.0.10 build process which didn't create a Windows installer, but that has now been resolved for v0.0.11.

Can you give v0.0.11 a try and let us know if it works for you?

@SebasAas
Copy link

SebasAas commented Jun 9, 2020

@edsu Perfect, the prebuild version works for me, thanks a lot

@edsu
Copy link
Member

edsu commented Jun 9, 2020

Awesome, I'm so glad to finally close this issue! Thanks for verifying @SebasAas.

@ELLEN15038979725
Copy link

I downloaded this version --Hydrator-Setup-0.0.11.exe, but there was no response when I clicked the button,what should I do ?

@edsu
Copy link
Member

edsu commented Dec 10, 2021

What country do you live in? Are you able to use twitter.com normally?

@ELLEN15038979725
Copy link

China, and I can open twitter.com normally.

@edsu
Copy link
Member

edsu commented Dec 10, 2021

We have had other reports from people in China that the Hydrator fails to work. I thought Twitter was completely blocked in China?

@edsu
Copy link
Member

edsu commented Dec 11, 2021

@ELLEN15038979725 I'm assuming you use a proxy to connect to Twitter in your web browser? What operating system are you using? Are you able to tell me if either https_proxy or HTTPS_PROXY are set in your system environment?

@ELLEN15038979725
Copy link

Yes, I can log in to Twitter with a proxy,and I use Windows 10.Both https_proxy and http_proxy are set in my system environment.

@edsu
Copy link
Member

edsu commented Dec 11, 2021

Ok, lets create a new issue for Hydrator to respect https_proxy and http_proxy when set in the environment. I actually did not know that was a common practice for clients to discover when a proxy was in use system wide.

@ELLEN15038979725
Copy link

I guess the reason may be the operating system. My friends can use Hydrator with macOS.I am also very curious about this issue, and I will continue to notice this question.Maybe I should try twarc.Anyway, thank you very much.

@edsu
Copy link
Member

edsu commented Dec 11, 2021

The operating system shouldn't matter too much. But the configuration of the operating system (vpn, proxy, etc) could make a significant difference!

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

6 participants