f1viewer icon indicating copy to clipboard operation
f1viewer copied to clipboard

ERROR: could not get subscription token

Open ScrewDrivert opened this issue 3 years ago • 29 comments

Please check the FAQ and search existing issues before you submit a new one!

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to...
  2. Try to play...
  3. See error

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

F1TV account plan Do you have a free, access or pro account? Are you using a VPN / proxy?

Desktop (please complete the following information):

  • OS
  • installation method
  • Version [f1viewer -v output]

Logs If applicable please provide the relevant portion of your logs. You can find them by running f1viewer -logs.

ScrewDrivert avatar Apr 07 '22 09:04 ScrewDrivert

I can confirm this issue. Everytime I launch f1viewer, the credentials are requested, but can't play anything because there's a error:

ERROR: could not get video URL: Missing parameter Ascendon Token or Entitlement Token

hrafaelveloso avatar Apr 07 '22 09:04 hrafaelveloso

I have the same issue.

ThanhDangNgo avatar Apr 07 '22 09:04 ThanhDangNgo

Same issue here. Started to happen hours before FP1. Hopefully there is a fix to this problem.

PostMalone avatar Apr 07 '22 09:04 PostMalone

Looks like they remove the user agent exception for automatic login prevention. See #111 for the original discussion.

Also affects RaceControl https://github.com/robvdpol/RaceControl/issues/414

I will take some time to investigate possible solutions later today.

SoMuchForSubtlety avatar Apr 07 '22 09:04 SoMuchForSubtlety

I will probably add a way to manually set the subscription token as a temporary measure. That way, you will be able to log in with your browser and retrieve the token from there.

SoMuchForSubtlety avatar Apr 07 '22 09:04 SoMuchForSubtlety

I added the option to set your subscription token directly with 69ce95045ea2f09e101f817dfbb4f8705a01bacd and 1435e188fa033328063242b96cb7335fc32e099a

Follow these steps to get it

SoMuchForSubtlety avatar Apr 07 '22 20:04 SoMuchForSubtlety

That worked just fine. Can get through the weekend with that. Any idea how long this token will be valid?

Arnvidr avatar Apr 07 '22 20:04 Arnvidr

Any idea how long this token will be valid?

It will expire after four days (96 hours).

SoMuchForSubtlety avatar Apr 07 '22 20:04 SoMuchForSubtlety

Hi, is there a way to use this preview version on macOS? Do you plan to push an update via brew before Australian FP1 starts? Thanks

maturd avatar Apr 07 '22 20:04 maturd

Hi, is there a way to use this preview version on macOS?

Yes, download darwin-amd64 (x86) or darwin-arm64 (arm), and execute it in your terminal

Do you plan to push an update via brew before Australian FP1 starts?

Yes, later today

SoMuchForSubtlety avatar Apr 07 '22 20:04 SoMuchForSubtlety

Confirming this is working on MacOS Monterey 12.3, M1 Pro Macbook Pro using the darwin-arm64 preview build. As an FYI upon clicking test there was a ~10 second hang where the app interface was unresponsive, but eventually the credentials were accepted. Thanks for the quick workaround, such a great app.

jejupods avatar Apr 07 '22 20:04 jejupods

Confirming this is working on MacOS Monterey 12.3, M1 Pro Macbook Pro using the darwin-arm64 preview build. As an FYI upon clicking test there was a ~10 second hang where the app interface was unresponsive, but eventually the credentials were accepted. Thanks for the quick workaround, such a great app.

Which command did you use to launch it? I downloaded the right preview build but I didn't understand if I need to clone it or what command to use to open it. I tried "launch", "go", "run" but I suppose there aren't correct. Sorry for the (I suppose) silly question but until now I just used brew and that is completely automated 😔

maturd avatar Apr 07 '22 20:04 maturd

Will there be some better solution down the line?

BoleMNE avatar Apr 07 '22 20:04 BoleMNE

New release is out https://github.com/SoMuchForSubtlety/f1viewer/releases/tag/v2.7.0

Will there be some better solution down the line?

Hopefully, I will leave this issue open until we find a proper fix. Other projects are working with embedded browser views, but we can't do that from a terminal application. I will investigate further and post updates if I find anything.

SoMuchForSubtlety avatar Apr 07 '22 21:04 SoMuchForSubtlety

New release is out https://github.com/SoMuchForSubtlety/f1viewer/releases/tag/v2.7.0

Will there be some better solution down the line?

Hopefully, I will leave this issue open until we find a proper fix. Other projects are working with embedded browser views, but we can't do that from a terminal application. I will investigate further and post updates if I find anything.

All is working now on M1 Max MB Pro on Monterey 12.3.1! Thank you so much. Just FWI: use Firefox on macOS to get the correct response of the by-password request. Used Safari in the beginning and the response was not the token itself

maturd avatar Apr 07 '22 21:04 maturd

Confirming this is working on MacOS Monterey 12.3, M1 Pro Macbook Pro using the darwin-arm64 preview build. As an FYI upon clicking test there was a ~10 second hang where the app interface was unresponsive, but eventually the credentials were accepted. Thanks for the quick workaround, such a great app.

Which command did you use to launch it. I downloaded the right preview build but I didn't understand if I need to clone it or what command to use to open it. I tried "launch", "go", "run" but I suppose there aren't correct. Sorry for (I suppose) silly question but until now I just used brew and that is completely automated 😔

It looks like the Brew release has been pushed so you won't need to follow these steps, however I'll leave the response here just in case it is helpful for you or anyone else reading this in the future.

Download the file that matches your Mac processor architecture - if you've got an M1 Mac then it would be the darwin-arm64 file, double click to extract it.

Open terminal and navigate to the location of the extracted file and type: sudo chmod +x f1viewer-darwin-arm64 (the filename will be different depending on what version you download) Enter your mac password if prompted. This will make the f1viewer-darwin-arm64 file executable.

Now you can just double click the f1viewer-darwin-arm64 file (or whatever you called it) in Finder and it will launch.

jejupods avatar Apr 07 '22 21:04 jejupods

New release is out https://github.com/SoMuchForSubtlety/f1viewer/releases/tag/v2.7.0

Will there be some better solution down the line?

Hopefully, I will leave this issue open until we find a proper fix. Other projects are working with embedded browser views, but we can't do that from a terminal application. I will investigate further and post updates if I find anything.

Thank you for the quick fix, however I cannot paste my token with v.2.7.0 on Windows 10 21H1, I cannot paste anything into any of the fields for that matter. CTRL + V does not work for password and username either and right click does nothing ofcourse.

I have followed all the steps with Firefox, but I am stuck now not being able to paste my token :(

Am I alone?

Edit:

Oh, I have to select the token field first, then right click the tab and then paste through the menu. Works fine now, thank you!

I usually use Race Control, so not really used to command line programs. Maybe you could add it to your instructions as I'm sure I won't be the only one with this problem.

pizza461 avatar Apr 07 '22 21:04 pizza461

Am I the only one who is getting an empty response after logging in to F1TV? The response field in by-password seems to be empty and I get the error "Failed to load response data: No resource with given identifier found"

yagyamalik avatar Apr 07 '22 23:04 yagyamalik

Am I the only one who is getting an empty response after logging in to F1TV? The response field in by-password seems to be empty and I get the error "Failed to load response data: No resource with given identifier found"

That's a bug in Chrome, you need to use Firefox

SoMuchForSubtlety avatar Apr 07 '22 23:04 SoMuchForSubtlety

New release is out https://github.com/SoMuchForSubtlety/f1viewer/releases/tag/v2.7.0

Will there be some better solution down the line?

Hopefully, I will leave this issue open until we find a proper fix. Other projects are working with embedded browser views, but we can't do that from a terminal application. I will investigate further and post updates if I find anything.

Thank you for the quick fix, however I cannot paste my token with v.2.7.0 on Windows 10 21H1, I cannot paste anything into any of the fields for that matter. CTRL + V does not work for password and username either and right click does nothing ofcourse.

I have followed all the steps with Firefox, but I am stuck now not being able to paste my token :(

Am I alone?

Edit:

Oh, I have to select the token field first, then right click the tab and then paste through the menu. Works fine now, thank you!

I usually use Race Control, so not really used to command line programs. Maybe you could add it to your instructions as I'm sure I won't be the only one with this problem.

I cannot paste token with v.2.7.0 on Windows 10 21H1, it doesn't display any menu to paste in f1viewer

  1. Open f1viewer
  2. Left-click token field
  3. Press and hold Tab
  4. Right-click token field

I try Ctrl V or hold mouse or hold Tab but nothing happen. Please help me.

ThanhDangNgo avatar Apr 08 '22 03:04 ThanhDangNgo

I cannot paste token with v.2.7.0 on Windows 10 21H1, it doesn't display any menu to paste in f1viewer

1. Open f1viewer

2. Left-click token field

3. Press and hold Tab

4. Right-click token field

I try Ctrl V or hold mouse or hold Tab but nothing happen. Please help me.

Don't hold tab, right click the tab, meaning: the tab where it says f1viewer.exe or right click left to the minimize button. There you can find a menu that says 'paste', which will then allow you to paste.

I guess I was right in saying that I wouldn't be the only one who was struggling with this xD

pizza461 avatar Apr 08 '22 03:04 pizza461

Christ! I'm sorry to say that it has started opening .mpd files again, with no picture. So I guess this is the end for us :( We must use the web browser to watch the race :(

Appears to be a problem with DRM and I fear there won't be a fix :'(

https://github.com/robvdpol/RaceControl/issues/413

pizza461 avatar Apr 08 '22 03:04 pizza461

Is F1Viewer opening blank .mpd files for anyone else?

Replays works fine, live stream sessions not.

PostMalone avatar Apr 08 '22 05:04 PostMalone

Appears to be a problem with DRM and I fear there won't be a fix :'(

Same here - live video is encrypted.

campodoro74 avatar Apr 08 '22 06:04 campodoro74

Appears to be a problem with DRM and I fear there won't be a fix :'(

Same here - live video is encrypted.

Replays from fp2 as well.

telelisast avatar Apr 08 '22 07:04 telelisast

When is there a fix for the drm?

JustJoostNL avatar Apr 08 '22 14:04 JustJoostNL

I can't get the subscription token at all, the Network tab in firefox shows nothing with "api.formula1.com" as filter. Actually, the login page returns absolutely nothing.

vidje avatar Apr 24 '22 12:04 vidje

I can't get the subscription token at all, the Network tab in firefox shows nothing with "api.formula1.com" as filter. Actually, the login page returns absolutely nothing.

Yeah, same here. The response to that POST doesn't load, Chrome says "Failed to load response data: No resource with given identifier found".

FxRe avatar Apr 24 '22 13:04 FxRe

@FxRe You can copy the request that was sent and then use a program like Postman to inspect the response and get the Subscription token.

fherenius avatar May 06 '22 22:05 fherenius