-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown response type #631
Comments
Does the curl request that it's generating look correct? What happens when you run that directly from the command line? Regarding the bearer token - you need to provide a |
the curls is correct If I try with postman works perfectly the last version all works fine |
Same problem juts upgraded from 1.x works from browser url and curl. Its a simple get with no params. In the UI Response body Response headers It hits it correctly eg Is the default ; charset causing an issue ? |
I am seeing the same behavior in my app regarding the response type showing Unknown Response Type. |
I’m not seeing this behavior in any of my sample apps. Could the folks on this thread help me find a repro, perhaps by starting from a blank project? |
I'm actually seeing this to, I thought it was just me. I'll see if I can
break down a small repo on it.
…On 8 Mar. 2018 8:33 pm, "domaindrivendev" ***@***.***> wrote:
I’m not seeing this behavior in any of my sample apps. Could the folks on
this thread help me find a repro, perhaps by starting from a blank project?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#631 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFIxOrbIe0gD3KWoPaFKIwjMhXnYkE8sks5tcfgNgaJpZM4SaP3C>
.
|
I'm having the same issue. With version 1.0.0 of Swashbuckle.AspnetCore everything works fine. I think it is a problem in the Swagger UI. |
Same issue here with v2.2.0. Content-Type of the response is EDIT: nope, still happening even if I explicitly set a Content-Type of
|
I suspect we are all adding oauth2 ... I rolled back ui to 1.2 and left everything else at 2.* and its fine. So definitely the ui package. |
This is clearly an issue that needs to be addressed but unfortunately I can’t repro. It would be very helpful if someone could create complete repro steps, starting with a blank app. That will definitely help me get to a resolution sooner |
I got the same behavior, but only on MS Edge browser (16.xxx). IE11 and Firefox work ok. |
Indeed, the problem seems to be related to the Edge browser. I'm using Edge 15.x. It works fine on Chrome. I've used the .NET Core SDK v2.0.3 for this, even though the 2.1-preview1 is installed in my system.
Please note the 13 and 0 are normal, since this is a chunked response. I wonder if they're the culprit? |
Ah good someone got to this, that's what I wanted to demonstrate.
…On Sat., 10 Mar. 2018, 1:58 am BrightSoul, ***@***.***> wrote:
Here's a repro, it's a very simple project. Nothing really special about
it.
https://github.com/BrightSoul/Swashbuckle-Issue-631-Repro
I've used the .NET Core SDK v2.0.3 for this, even though the 2.1-preview1
is installed in my system.
I've noticed Kestrel is returning this chunked response when I invoke the
/api/values endpoint.
HTTP/1.1 200 OK
Date: Sat, 10 Mar 2018 08:48:27 GMT
Content-Type: application/json; charset=utf-8
Server: Kestrel
Transfer-Encoding: chunked
13
["value1","value2"]
0
Please note the 13 and 0 are normal, since this is a *chunked* response.
I wonder if they're the culprit?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#631 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFIxOocYxD1EAxOUXf095oRpQFIDnV-yks5tc5WogaJpZM4SaP3C>
.
|
Response encoded? Does that matter? I can't get time to put the repro together to help but hoping the one that BrightSoul put down. I can confirm though it works differently between IE/Edge and Chrome. |
Yes I test on chrome and firefox, and internet explorer 11 works, in edge doesn't work |
http://petstore.swagger.io/#/pet/addPet Can anyone try this under edge? I don't think this is an issue with swashbuckle, i ran edge on the swagger.io site and it fails with unknown response.
Is missing from 3.12 and is in the older revisions of swagger. |
Confirmed. I see the 'Unknown response type' error on petstore.swagger.io as well.
Now that you mention it, I see a similar issue opened in the Swagger UI repository. |
There was another issue; I've lost the link now, that they removed the meta tag in 3.x. I assume that's all it is to fix it again. Until they sort out 3533 properly... doesn't seem it was done. Found the link : swagger-api/swagger-ui#1355 |
swagger-api/swagger-editor#1371 has a workaround fix, either @domaindrivendev can input or everyone has a way to work around me thinks. https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9370062/ Looks like it'll be fixed in edge... eventually, i think i'm linking this properly. |
I’m happy to bake this into the embedded version in SB. If I do, can folks on this thread test it out (via builds of master on myget.org). With this help, especially around cross-browser regression testing, I can get an official release out sooner. |
I’ll post here when the preview is available |
I just tested a custom index.html in my local with the override, works.
And i dropped the script tag in that was in the link above.
I can get some time to test your myget hopefully sometime .. :) |
The preview is now available at https://myget.org/feed/domaindrivendev/package/nuget/Swashbuckle.AspNetCore. Looks good for me so will close issue but please test and let me know. If I get 1 or 2 confirmations I’ll release an official nuget |
Thumbs up, it's now working for me. |
@domaindrivendev did you release this? I can not install the v2.4 from above and its not available in official nuget site |
Me too. Really need a fix. |
don't use Microsoft Edge and you'll find a new world 23333333 |
Hello with the new version of swagger the authorization does not working in the swagger documentation page but when we use curl or postman all things workes fine so the problem was in the swagger does not put the new field in the header you can use this code to solve this problem ` public class BasicAuthFilter : IDocumentFilter
` |
I have a .NET core app I update to the last versión 2.2.0 but the swagger doesn't work, correctly the post login in the response show
Unknown response type
https://www.screencast.com/t/yb8UNne4
This is the previous versión
https://www.screencast.com/t/GMiG1RLK
I can't authorize too I try to set the bearer and token with the Word bearer token or token but doesn't works
The text was updated successfully, but these errors were encountered: