Skip to content

[BUG] Fix exception of unsupported media from FullContact#4

Merged
bapu-nexl merged 3 commits into
mainfrom
fix-unsupported-media
Jun 24, 2026
Merged

[BUG] Fix exception of unsupported media from FullContact#4
bapu-nexl merged 3 commits into
mainfrom
fix-unsupported-media

Conversation

@bapu-nexl

@bapu-nexl bapu-nexl commented Jun 2, 2026

Copy link
Copy Markdown
Contributor
  • Fix exception of unsupported media from FullContact

@bapu-nexl bapu-nexl changed the title fix exception of unsupported media from FullContact [BUG] Fix exception of unsupported media from FullContact Jun 2, 2026
@bapu-nexl

Copy link
Copy Markdown
Contributor Author

fixes the issue of 415 Unsupported Media Type returned by FullContact which is one of our Enrichment service

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a FullContact API error (“unsupported media type”) by ensuring requests are sent with JSON Content-Type/Accept headers, and bumps the gem version to publish the fix.

Changes:

  • Add content_type: :json and accept: :json to RestClient.post calls in FcEnrich::HttpClient.
  • Update the HTTP client spec to assert JSON headers on the success case.
  • Bump gem version from 0.4.0 to 0.4.1.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lib/fc_enrich/http_client.rb Sends JSON Content-Type and Accept headers to avoid 415/unsupported media responses.
spec/fc_enrich/http_client_spec.rb Updates the success-case stub to expect JSON headers.
lib/fc_enrich/version.rb Bumps gem version to 0.4.1 for releasing the fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spec/fc_enrich/http_client_spec.rb Outdated
Comment thread lib/fc_enrich/version.rb
@bapu-nexl bapu-nexl merged commit 35cfbdc into main Jun 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants