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

Userscript XHR errors #1876

Closed
3 tasks done
GrandDuke1106 opened this issue Apr 8, 2024 · 0 comments
Closed
3 tasks done

Userscript XHR errors #1876

GrandDuke1106 opened this issue Apr 8, 2024 · 0 comments

Comments

@GrandDuke1106
Copy link

Please answer the following questions for yourself before submitting a question.

  • I am running the latest version
  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

Ask a question

I use adguard for Android as a script loader. I added a script for web page translation and when the script tries to call Microsoft Translate (visit edge.microsoft.com), it gets a 500 error.

Of course I get this error with other scripts as well

I want to how to set it up to avoid this error

This is the script https://download.immersivetranslate.com/immersive-translate.user.js

This is the request header.

GET /adguard-ajax-api/api?type=gm-xml-http-request&unique_name=Immersive%20Translate%20-%20Translate%20Website%20%26%20PDF&url=https%3A%2F%2Fedge.microsoft.com%2Ftranslate%2Fauth&data=&headers=accept:*%2F*,accept-language:zh-TW%2Czh%3Bq%3D0.9%2Cja%3Bq%3D0.8%2Czh-CN%3Bq%3D0.7%2Cen-US%3Bq%3D0.6%2Cen%3Bq%3D0.5,cache-control:no-cache,pragma:no-cache,referrer-policy:strict-origin-when-cross-origin&method=GET&overridemimetype=&user=&password=&sn=2eb5fe7d280a753162c7782419529af5387f268194be1f11c998ede95499d7dc&ust=32d2e0ea-19f4-4cc8-a2cf-13beb25e1ea1 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Host: local.adguard.org
Origin: https://sdf.org
Referer: https://sdf.org/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36
sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
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

5 participants