Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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