OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
228 stars 49 forks source link

look into EOF error / improve handling of remote url upload #368

Closed tzarebczan closed 3 years ago

tzarebczan commented 3 years ago

Error seen by user:

Error: "unexpected EOF: \"https://vods2.odysee.live/odysee-replay/4553807e23243572e2ab4829dc155ac91cc68c90_odysee_1630350117319.mp4\""

FIle: https://vods2.odysee.live/odysee-replay/4553807e23243572e2ab4829dc155ac91cc68c90_odysee_1630350117319.mp4

Request:

remote_url: https://vods2.odysee.live/odysee-replay/acf7846f360e5f32b934f52e57ed24170bfe9508_odysee_1630005397.mp4
json_payload: {"jsonrpc":"2.0","method":"publish","params":{"name":"test22222222","title":"test live - remote","locations":[],"bid":"0.01000000","languages":["en"],"tags":[],"thumbnail_url":"https://spee.ch/0/a6ce1b684cb8f73d.png","blocking":true,"preview":false,"license":"None","release_time":1629733412},"id":1630425026258}

you'll need to pass an x-auth-token from odysee internal apis along with the request (see odysee.com calls for example).