[BUG] Fix exception of unsupported media from FullContact#4
Merged
Conversation
8a39b54 to
f637c7f
Compare
Contributor
Author
|
fixes the issue of 415 Unsupported Media Type returned by FullContact which is one of our Enrichment service |
Contributor
There was a problem hiding this comment.
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: :jsonandaccept: :jsontoRestClient.postcalls inFcEnrich::HttpClient. - Update the HTTP client spec to assert JSON headers on the success case.
- Bump gem version from
0.4.0to0.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.
Firmanc
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.