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

Some Fetch Block URLs Fail, Citing "Upgrade Your Browser" #1815

Closed
Dan-Peck opened this issue May 9, 2023 · 2 comments
Closed

Some Fetch Block URLs Fail, Citing "Upgrade Your Browser" #1815

Dan-Peck opened this issue May 9, 2023 · 2 comments

Comments

@Dan-Peck
Copy link
Collaborator

Dan-Peck commented May 9, 2023

References
Ticket 47376

Describe the bug
When using a public URL to fetch basic textual data into a Fetch block, the result is an error message indicating the browser should be upgraded. In this particular scenario, we were using a Dropbox URL pointing to a text file, and it returned a "409" error, stating "Your current browser is not supported. We support the latest versions of the following browsers:"

To Reproduce
Steps to reproduce the behavior:

  1. Create a Dropbox (or other site that serves files/data content) text file.
  2. Use its "Sharing" functionality to retrieve a Public URL to the file.
  3. On DAKboard, create a Fetch block and enter this Public URL into its configuration.
  4. Notice the error shows after it runs a test-fetch on it.

Expected behavior
The text file should show as a result of the fetch.

Desktop (please complete the following information):
Any/all

Smartphone (please complete the following information):
Any/all

@Dan-Peck Dan-Peck added the bug label May 9, 2023
@Dan-Peck
Copy link
Collaborator Author

Dan-Peck commented May 9, 2023

After some analysis with the team, we have found this is the result of an older User-Agent header string that we pass during the call to retrieve the URL content.

Updating the User-Agent string in these requests to report as a more modern browser should increase compatibility with most URLs, and allow them to work as expected moving forward.

@Dan-Peck Dan-Peck self-assigned this May 9, 2023
@Dan-Peck
Copy link
Collaborator Author

Merged in @ 681dcea and added to the queue for upcoming release to the live site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants