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
When trying to perform a fetch that would return a body containing unicode (in this case it is the ' character), the following error occurs: Apollo.JSONDecodingError.couldNotConvert(value: { deviceName = "tony\U2019s iPhone"; }, to: Swift.String))
Where through graphiql and proxying through Charles, you can see clearly that the value of that variable is correctly parsed: "metadata": { "deviceName": "tony’s iPhone" },
The text was updated successfully, but these errors were encountered:
Solved:
The real cause of this issue was a custom SCALAR type where we were trying to pass a json object, but the parser automatically tries to pass the custom type as a string, causing a parsing error.
Referencing #94, we made some custom parsing rules for my custom type and fixed the issue.
When trying to perform a fetch that would return a body containing unicode (in this case it is the ' character), the following error occurs:
Apollo.JSONDecodingError.couldNotConvert(value: { deviceName = "tony\U2019s iPhone"; }, to: Swift.String))
Where through graphiql and proxying through Charles, you can see clearly that the value of that variable is correctly parsed:
"metadata": { "deviceName": "tony’s iPhone" },
The text was updated successfully, but these errors were encountered: