question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't log into Scratch with some user agents

See original GitHub issue

Expected Behavior

A user should be able to log into Scratch with any user agent. https://scratch.mit.edu/robots.txt

Actual Behavior

With a certain user agent (shown below) a user is not able to log into Scratch. It also shows a message along the lines of “an error occured”.

Steps to Reproduce

  1. Set your useragent to Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ninetails/2.2.0 Chrome/96.0.4664.45 Electron/16.0.0 Safari/537.36.
  2. Log in to Scratch (or try to at least).

One interesting thing I found is that if you change the x86_64 part of the UA, it will work.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
hello-smile6commented, Dec 22, 2021

A user should be able to log into Scratch with any user agent. https://scratch.mit.edu/robots.txt

Actually, robots.txt is a guideline for search engines and web crawlers. Additionally, any entity that is not a web browser should respect robots.txt. Therefore, as /site-api is disallowed in robots.txt, there is plenty of justification for unrecognized UAs to be blocked, such as cURL, which could potentially be used (in the form of libcurl) for a bot, and other abnormal UAs. At least, that’s what my opinion on the subject is.

4reactions
colbygkcommented, Dec 22, 2021

A user should be able to log into Scratch with any user agent. https://scratch.mit.edu/robots.txt

[citation needed]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Student Can't log in with their teacher created username and ...
I created student usernames and passwords for my class. One of my students can't get signed in, but the login information works from...
Read more >
Issues logging in - Scratch
If you're looking for steps on how to log in, please view our Logging in and ... If you're having issues logging in,...
Read more >
RFC 8252: OAuth 2.0 for Native Apps
RFC 8252 OAuth 2.0 for Native Apps October 2017 "embedded user-agent" A user-agent ... as well as the user needing to authenticate from...
Read more >
Symptoms - VMware Knowledge Base
Configuring a persistent scratch location using the vSphere Web Client for ESXi 6.x. Follow similar steps when using HTML5 Client. · Log in...
Read more >
Getting started with Guide for your help center: Setting up
Agents can use the knowledge base to help solve tickets faster. ... Sign in to Zendesk Support as the account owner.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found