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

add more logging to be able to figure out where these 'incorrect format' errors come from #777

Open
aaronbrethorst opened this issue Dec 8, 2024 · 2 comments
Assignees

Comments

@aaronbrethorst
Copy link
Member

we periodically see "The data couldn't be read because it isn't in the correct format" errors reported by users. Unfortunately, as frustrating as they are for users of the app, we cannot do much to track them down because they just indicate that our app isn't able to parse the incoming data, as opposed to something that would help us identify the bad data in question.

The dialog should include either some sort of identifying information, send a nonfatal error to Firebase, or both.

image

@aaronbrethorst aaronbrethorst self-assigned this Dec 8, 2024
@udithaAnuranjana
Copy link

I just cloned the project and keep getting this error message. I believe the issue occurs because, inside the updateRegionsList function, we are receiving empty strings for the baseUrl field (e.g., "baseUrl":"").

Decoder failed for https://regions.onebusaway.org/regions-v3.json?version=2&key=org.onebusaway.iphone&app_uid=15AF89C6-F6D2-4A56-B2F3-BF20D1827848&app_ver=24.4.0: Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), DataCodingKeys(stringValue: "list", intValue: nil), _CodingKey(stringValue: "Index 16", intValue: 16), CodingKeys(stringValue: "open311Servers", intValue: nil), _CodingKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "baseUrl", intValue: nil)], debugDescription: "Invalid URL string.", underlyingError: nil))

Check the error JSON below:

data.json

@aaronbrethorst
Copy link
Member Author

thanks @udithaAnuranjana!

aaronbrethorst added a commit that referenced this issue Dec 10, 2024
aaronbrethorst added a commit that referenced this issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants