HttpError: missing custom Accept header?
See original GitHub issueThanks for making GitHub experience great via ProBot! Yesterday I tested 9.0.0, and it seems working in my local. However in production env, I met a problem:
Bug Report
Current Behavior
Probot called installation/repositories
GitHub API automatically, and got 415 due to:
HttpError: If you would like to help us test the GitHub Apps API during its preview period, you must specify a custom media type in the βAcceptβ header. Please see the docs for full details.
You can see a full log at sentry.
Expected behavior/code There is no 415 error.
Environment
- Probot version(s): v9.0.0
- Node/npm version: Node v10.15.3, octokit/rest.js v16.17.0
- heroku-18 stack with https://github.com/jontewks/puppeteer-heroku-buildpack
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
ajax xhr.getResponseHeader - missing custom header on ...
The problem. There are no custom headers coming back in the response when 40x (404 in this particular case). nginx. enter image descriptionΒ ......
Read more >HttpClient do not detect header params Β· Issue #20554
HttpClient do not detect the custom header params that are sent from the API. ... Missing response header values in thrown HTTP error...
Read more >HTTP status code to signal bad or missing Host header
A server MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message that lacks a Host header field and...
Read more >How to resolve parse error when HTTP content-type ...
(1) set the HTTP "content-type" header in DataPower by using the Header Tabs of the Multi-Protocol Gateway or Web Services Proxy.
Read more >How To Fix HTTP Error 431 Request Header Fields Too ...
Learn how to fix the HTTP Error 431 Request Header Fields Too Large message using four simple troubleshooting tips.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try to update octokit/rest to the latest version, I think that should fix it: https://github.com/octokit/rest.js/releases/tag/v16.17.1
Iβve installed rtd-bot v0.7.1 (last commit: 628ae0d). Iβve run it with the configuration of my WIP app to test the /probot/stats endpoint. It worked without a problem.
Here is my output of
npm ls --production
for comparion