sharkone / BitTorrent.bundle

BitTorrent channel for Plex Media Server
144 stars 52 forks source link

popcorn api unavailable #114

Closed pljp000 closed 5 years ago

pljp000 commented 5 years ago

I tried getting to https://api-fetch.website/tv with my browser get see the following: Cannot GET /. I've restarted my pc and plex and still cannot access.

codcheeks commented 5 years ago

yup me too it seems that it is down too bad one of the favs of plugins

soodkhah commented 5 years ago

From plugin : ngrep shows the following : HTTP Error 403: Forbidden. T my ip:46962 -> 104.24.29.84:80 [AP] #88 GET /status HTTP/1.1. Host: movies.api-fetch.website. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9. Connection: close. Accept: text/*, application/json. Accept-Encoding: gzip. .

# T 104.24.29.84:80 -> my ip:46962 [A] #89 ...... # T 104.24.29.84:80 -> myip:46962 [A] #90 HTTP/1.1 403 Forbidden. Date: Sun, 13 Jan 2019 23:19:18 GMT. Content-Type: text/html; charset=UTF-8. Transfer-Encoding: chunked. Connection: close. Set-Cookie: __cfduid=d6ab76f4bda8a49557f030ba4482813a41547421558; expires=Mon, 13-Jan-20 23:19:18 GMT; path=/; domain=.api-fetch.website; HttpOnly. Cache-Control: max-age=15. Expires: Sun, 13 Jan 2019 23:19:33 GMT. X-Frame-Options: SAMEORIGIN. Vary: Accept-Encoding. Server: cloudflare. CF-RAY: 498b964395c43048-YYZ. Content-Encoding: gzip. . 493. ...........Vmo.6...q...K(.N.&...HS ..l...(..<YL(R#i;^..>P...N..}.yw|x/..){........P.Z......e....%..T@....s.'..;...QB"...<'........G.B..(}..p...z.sP...:.........(.Q(.E...b.y...o9G.@..(....R.KX#i..W. gNz..C...,D..E..,:o%..Z.,....F..W.:.9..yOO...E.}C......h....u..x<....OCh.[.o..Io...S7.....]]..b.G....|......X33..nh#...#..4J......Uc..]ZI...Rr...Hj.%S.q.0....A..zs..J.{..r..Z...=.)r..i.Q....b....M..Q..2Ak.uIk...v.k.5 .r..E.G.5w..4:...1g...;..........G.......r.~13b..fv..dx.0!..O._..B1..:.Cd.a.+..V6..y..,J.8....R....7I-ur.H.u......Gy.pS..{..`...Cb..@&..#.]Y.4hI.w.nR..2.....m.....{...Q1JZ;..yF.e.).1..6S8.F... .C.b..I. ....y..B.z&Uh..w;..@.B......./".%.....a......k.>x.... .6).e...p..H..$.h8.>u.fj;...R..ek.)~ck.z7.............xxr .g...a<.......a|<..MF.p{s..-j/...qV.{>..,<..F......o..V/....KqK.M....U7...k....-\g..}........2d'.O..X...k....V.Q....T......|...7.t.Y....I=.....J........X..{........C..y..}h.f'..!=I.......&._Oq$ai..m..s.9.O.hM.......!d..5z^..3..

T 104.24.29.84:80 -> 192.168.1.10:46962 [AP] #92 V.g.W..6.2..)....D.Ze..,,]w.&0..$...d<:I..~...:p..4.f.#<gus........u.2|..I..V..o3..|......b:..7._O.YX.y.....4.Y..4.j...y........Ze)..B.v...{v....>.~.......f.wD.....+..Y%S^N7M...../.....v..5..[......./....... 0. .

If I make the same call using curl, it will be a 200 with the json response. HTTP/1.1 200 OK. Date: Sun, 13 Jan 2019 23:10:52 GMT. Content-Type: application/json; charset=utf-8. Content-Length: 235. Connection: keep-alive. Set-Cookie: __cfduid=d91794e00f232be6cb751e50e0d6250611547421052; expires=Mon, 13-Jan-20 23:10:52 GMT; path=/; domain=.api-fetch.website; HttpOnly. X-Powered-By: Express. ETag: W/"eb-Aw58n9ouuMGL1McuflCVUw". X-Response-Time: 12.744ms. Vary: Accept-Encoding. X-Varnish: 385910689 388105418. Via: 1.1 varnish-v4. X-Varnish: 903720894 902516311. Age: 65. Via: 1.1 varnish-v4. Accept-Ranges: bytes. Server: cloudflare. CF-RAY: 498b89e783693018-YYZ. . {"repo":"https://github.com/popcorn-official/popcorn-api.git","server":"serv01","status":"Scraping YTS","totalAnimes":704,"totalMovies":10307,"totalShows":3036,"updated":1547416800,"uptime":1072031,"version":"2.2.3","commit":"6c8a9a4"}

crisfduran commented 5 years ago

@soodkhah How do you make your call with curl? I get the same "Cannot GET /" response when using curl.

shoguevara commented 5 years ago

Same problem here. Although https://tv-v2.api-fetch.website/status is accessible from the server People are having the same problem https://forums.plex.tv/t/rel-bittorrent-channel/60403/1839

pljp000 commented 5 years ago

I'm kind of wondering if Sharkone is on vacation, or no longer interested in this software.

soodkhah commented 5 years ago

@soodkhah How do you make your call with curl? I get the same "Cannot GET /" response when using curl. curl https://tv-v2.api-fetch.website/status

If you take the '/status' out, the response will be "Cannot GET /". The troubleshoot test sends the request to /status.

michaelllucas commented 5 years ago

Did anyone manage to fix this issue ? Suddenly the plugin is not working any more as Popcorn API is unavailable

pljp000 commented 5 years ago

No, I was hoping Sharkone would respond.

shoguevara commented 5 years ago

Seems like we can only thank Sharkone for the job he've done and try to fix this on our own. I've noticed that a lot of people forked this repo, bu none of then made any significant change. Anyway we might try to ask them for help - unfortunately I personally don't have any skills to do it by myself

Conman2344 commented 5 years ago

Fix: https://github.com/Conman2344/BitTorrent.bundle

pljp000 commented 5 years ago

Thank you Conman, Things are listing but plugin's are not responding.

Conman2344 commented 5 years ago

Ill take a look tomorrow, where did you get to before it stops responding?

sharkone commented 5 years ago

I'll try and integrate the fix tonight or tomorrow.

pljp000 commented 5 years ago

It lists my favorites an new content but when you click on any of the media to play it says it can't respond. Thanks you guys! I know a lot of people who will be very happy when this is fixed!

pljp000 commented 5 years ago

Hi Thomas & Conor,

How is it going? Does it look like you'll be able to fix the bundle?

sharkone commented 5 years ago

There's still some issues in my testing. I'll have a look.

On Sun., Jan. 20, 2019, 18:41 pljp000 <notifications@github.com wrote:

Hi Thomas & Conor,

How is it going? Does it look like you'll be able to fix the bundle?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharkone/BitTorrent.bundle/issues/114#issuecomment-455913683, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT1HrlijOW-Udo8U5jRXXkBQUVoHFLmks5vFP61gaJpZM4Z86FF .

soodkhah commented 5 years ago

@sharkone Popcorn server has Cloudflare in front. I looked it up and figured it is a Proxy/Firewall. Tried to figure out why it blocks sent by the Plex while it does not block my simple curl. It is because of the user agent. I copied the same user agent Plex Http client sends and got the same response (403) from popcorn. I will paste the details under this comment. I guess bottom line is that the Cloudflare has kind of blocking mechanism based on the request load. I believe it has blocked Plex requests possibly mistaking it with a DDOS attack. here is the sample blocked request: Please read the next request which sends an arbitrary User Agent as well(200 ok) curl -vvv https://api-fetch.website/tv/status -sL -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko)'

Error 1020 Ray ID: 49c6515fca073042 • 2019-01-21 02:23:16 UTC

Access denied

What happened?

This website is using a security service to protect itself from online attacks.

Now the healthy one: curl -vvv https://api-fetch.website/tv/status -sL -H 'User-Agent: howisitgoing'

sharkone commented 5 years ago

Published release 1.1.2, available through the internal plugin update system. Seems to be working properly again. Thanks @Conman2344 for your help.

pljp000 commented 5 years ago

Thank you Thomas and Conan your both the best!!!!!!!!!!!!!!

ViktorCapulet commented 5 years ago

Download Strem.io I’ve been using it for about 10 years now. You can take Netflix and every platform remotely like it even the television and it’s still killing it. TV shows are on STREMIO the day after they air.