You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i checked the code: status_code=400, requests.codes.ok=200
"400 Bad Request: This HTTP status code indicates that the server could not understand the request due to invalid syntax. The client should not repeat the request without modifications."
@staticmethod
def getLanguageCountry(language: str, country: str) -> tuple[str, str]:
if not country:
country = CONFIG.get("default").get("geolocation")
if not language:
- country = CONFIG.get("default").get("language") + language = CONFIG.get("default").get("language") # should be assigned to language instead of overwriting country !!!!!
#237)
1. keyError in getEdgeVersions
Looks like users "randomly" get response json with capitalized or
uncapitalized key.
Thus, add temp function to ignore the capitalization.
3. Key Error in `getLanguageCountry()` country in config.yaml is using
key 'geolocation', while it's fetched by the wrong key 'location'
```yaml
default:
geolocation: US # Replace with your country code https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
```
```python
@staticmethod
def getLanguageCountry(language: str, country: str) -> tuple[str, str]:
if not country:
country = CONFIG.get("default").get("location")
```
Before submitting a bug report...
This bug wasn't already reported.
(I have checked every bug report on GitHub)
I've cleared the sessions folder.
Branch
develop
Commit
4ff9d79
Describe the bug
i checked the code: status_code=400, requests.codes.ok=200
"400 Bad Request: This HTTP status code indicates that the server could not understand the request due to invalid syntax. The client should not repeat the request without modifications."
Further checked the request:
and found the geo is
en
, should be 'us' in my case.Further confirmed by running
bug located:
Copy and paste your error
refer to #206
Screenshots
not applicable
Value of dashboard variable
not applicable
The text was updated successfully, but these errors were encountered: