Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Analytics plugin "mimeType" error #584

Closed
subnetmarco opened this issue Oct 2, 2015 · 0 comments
Closed

Analytics plugin "mimeType" error #584

subnetmarco opened this issue Oct 2, 2015 · 0 comments
Assignees
Labels
idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports. task/bug

Comments

@subnetmarco
Copy link
Member

Not sure is this has been fixed in 0.5.0 (since the previous errors were about invalid URIs), but I have also been seeing this happening:

Oct  2 20:09:20 46.101.34.138 Oct  2 20:09:20 dc418a30899d nginx: 2015/10/02 20:09:20 [error] 59#0: [lua] buffer.lua:164: [mashape-analytics] socket server refused the batch. Status: (400) Error: (["[0] har.log.entries.0.request.postData.mimeType is the wrong type in [ 'application/vnd.api+json', 'application/vnd.api+json' ]"]), context: ngx.timer, client: 182.163.64.193, server: 0.0.0.0:8000
@subnetmarco subnetmarco added task/bug idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports. labels Oct 2, 2015
@thibaultcha thibaultcha self-assigned this Oct 3, 2015
thibaultcha added a commit that referenced this issue Oct 15, 2015
If a request or response have multiple Content-Type headers, this make
sure the latest one is returned, so mimeType is guaranteed to be a
string, and not an array.

Fix for #584
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports. task/bug
Projects
None yet
Development

No branches or pull requests

2 participants