Skip to content

Bug: Cannot upload or parse Data(binary) objectΒ #127

@MikeBenton2

Description

@MikeBenton2

🌎 Environment

  • Xcode: 16.1
  • Platform: iOS
  • Version/Release: latest

πŸ’¬ Description

This is related to my other Question below in the "issues" section because we can't upload a Multipart form(binary) and we currently cannot parse Data(binary) objects either. We receive an error:

"failed - Error preparing pact! A key or value in the structure does not conform to 'Encodable' protocol. The element attempted to encode: 1 bytes"

Data does not conform to Encodable, which makes sense since it's binary and does not need to be translated, however, it shouldn't have that check. Is this something y'all are looking into?

I believe it's this file that is causing the issue since it's always trying to encode the body:
Sources/Model/Response.swift

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions