Skip to content

Attaching uploaded image to Episode fails with 500 error #1399

@nprail

Description

@nprail

Affected Product
Publishing

Describe the bug
When attempting to upload an image to an episode, the upload works but then updating the episode fails.

To Reproduce
Upload a file via the API then call the patch endpoint to update an Episode.

curl --location --request PATCH 'https://api.planningcenteronline.com/publishing/v2/episodes/593913' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <redacted>' \
--data '{
  "data": {
    "attributes": { "art": "us4-12556fdc-be83-7ebe-65c4-e68105423740" }
  }
}'

Expected behavior
Call should succeed.

Screenshots

{
    "errors": [
        {
            "status": "500",
            "title": "Internal Server Error",
            "detail": "An internal server error occurred on our end and we've been notified. Please contact support if the issue persists."
        }
    ]
}

Additional Context:

  • Endpoint: PATCH /publishing/v2/episodes/{episodeId}
  • Language: Node.js
  • Authentication: PAT

I have..

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues reporting this bug
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions