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
The feedback for corrupt or unexpected data is lacking.
structEditPoll:Codable,Equatable{letname:Stringletdescription:Stringletduration:IntletroomId:UUID}Route(.case(PollsRoute.create)){Method.post
Body(.json(EditPoll.self))}
error: The data couldn’t be read because it isn’t in the correct format.
I think the following would print more specific information.
print(String(describing: jsonDecodingError))
``
The text was updated successfully, but these errors were encountered:
@nashysolutions@saroar Can you flesh this issue out if you think you're experiencing a bug? A specific reproduction would be helpful for us to work with.
If UserCandidate does not match the expected payload exactly, and decoding fails.
public struct UserCandidate: Codable {
public let firstName: String // should be name, not firstName
public let username: String
public let password: String
Then the response is unhelpful.
error: The data couldn’t be read because it is missing.
The feedback for corrupt or unexpected data is lacking.
I think the following would print more specific information.
The text was updated successfully, but these errors were encountered: