stephane-r / HoloPlay

React-Native app using Invidious API for listening Youtube audio source.
https://holoplay.io
MIT License
175 stars 7 forks source link

App cannot pull content from Invidious #169

Open ghost opened 2 years ago

ghost commented 2 years ago

Good morning, Whenever I start the HoloPlay app (version 1.12.1) it fails to pull content from Invidious and prompts me to switch the instance. However, none of them are down (they work in my browser) and all of them fail in HoloPlay.

I am using a FairPhone 4, 256GB, with Android 11 and December 5th security updates. I have the same issue on a Google Pixel 3 with Android 12. I did try using a different network with no results. I don't use a DNS blocker or anything like that on network or phone level. I tried monitoring the connection to see if it gets blocked for whatever reason but the app seems to ping Invidious totally fine: Screenshot_20220202-233005_1

It IS able to download the list of instances. It is not able to pull any content from any of them.

raffaem commented 2 years ago

Same issue here.

I get:

"No result. Maybe instance is down? Try to change Invidious instance from settings screen".

The instance yewtu.be is perfectly fine and works on the web browser on the same phone in which I'm using HoloPlay.

stephane-r commented 2 years ago

Hi guys !

The frontend seems to work, however the API returns an error (example with yewtu.be : https://yewtu.be/api/v1/popular)

I'm currently using vid.puffyan.us, API work nice :)

ghost commented 2 years ago

I'm currently using vid.puffyan.us, API work nice :)

You're right! Maybe then it would be a good idea to check if the API is working before displaying the instance to the user? I thought the app is broken, while it seems like the Invidious instances I've tried are simply misconfigured :P

stephane-r commented 2 years ago

You're right! Maybe then it would be a good idea to check if the API is working before displaying the instance to the user? I thought the app is broken, while it seems like the Invidious instances I've tried are simply misconfigured :P

Yes ! Good idea, i'll add this soon on the Invidious Instance screen :) Thank you

raffaem commented 2 years ago

You're right! Maybe then it would be a good idea to check if the API is working before displaying the instance to the user? I thought the app is broken, while it seems like the Invidious instances I've tried are simply misconfigured :P

Yes ! Good idea, i'll add this soon on the Invidious Instance screen :) Thank you

Can we left it open to track the change proposed by @stephane-r ?

Also, is there a way to avoid that the Invidious API instance is down?
I noticed a "Too many requests".
Can we propose for example login credentials to call the API, as to avoid spam?

stephane-r commented 2 years ago

Yes no problem for stay issue opened.

For Invidious API, you have to see directly on the repo of the project 😄 Have you try to call API with Token ?

raffaem commented 2 years ago

Yes no problem for stay issue opened.

For Invidious API, you have to see directly on the repo of the project smile Have you try to call API with Token ?

No I haven't.

How do I do that?

stephane-r commented 2 years ago

You have the step on the HoloPlay README :)

First, create account on Invidious Instance, ofc. The, generate token (replace the domaine by your) : **invidious.snopyta.org/authorize_token?scopes=:***

Add it on HoloPlay from Settings screen.

raffaem commented 2 years ago

You have the step on the HoloPlay README :)

First, create account on Invidious Instance, ofc. The, generate token (replace the domaine by your) : **invidious.snopyta.org/authorize_token?scopes=:***

Add it on HoloPlay from Settings screen.

Uhm it says "JSON Parse error: Unexpected token: <"

DWW256 commented 2 years ago

I'm noticing a similar error, where it throws out "JSON Parse error: Unexpected token: e" when I try to add a new token.