It would be really useful to see exactly how you are 'calling' this.
Do you have a curl command line or are you using some other client?
n
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
So I went ahead and wrote a simple client by hand and when I call the
two functions on a local endpoint that shows me the request URL I get
the following.
Same arguments for 'pretty' and 'labelSelector' in both cases.
Code:
runListSecret :: Manager -> BaseUrl -> ClientM SecretList
runListSecret manager baseUrl = listSecret (Just "prettyArg") (Just "=")
Nothing Nothing Nothing Nothing manager baseUrl
runListService :: Manager -> BaseUrl -> ClientM ServiceList
runListService manager baseUrl = listService (Just "prettyArg") (Just
"=") Nothing Nothing Nothing Nothing manager baseUrl
Server log:
127.0.0.1 - - [14/Jan/2017:18:39:49 +0000] "GET
/api/v1/secrets?pretty=prettyArg&labelSelector=%3D HTTP/1.1" 404 - 0.0003
127.0.0.1 - - [14/Jan/2017:18:39:49 +0000] "GET
/api/v1/services?pretty=prettyArg&labelSelector=%3D HTTP/1.1" 404 - 0.0003
I haven't used swagger-codegen but the servant-client code works for me
so I would look more into that.
Swagger codegen looks like it might take me a while to get my head into
so maybe you could look at the generated code, or sling it to me here or
directly.
The two calls are so similar that I can't see why the generated client
would behave differently in those cases.
Regards,
n
> Best
> Jan
>
> Nigel Rantor <wig...@wiggly.org <mailto:wig...@wiggly.org>> schrieb am
Could you call both of them with *exactly* the same input?
i.e. create a single selector and call both of them with exactly that input?
I just feel like this might be a really silly typo or something somewhere.
Alternatively can you give us the code you're using so we can play with it?
n
> <mailto:dct25...@mythic-beasts.com>> schrieb am Sa., 14. Jan. 2017 um
> 20:08 Uhr:
>
> Grasping at straws a little bit here, but can you (a) do a packet
> capture (e.g. `tcpdump -X`) to see what's going back and forth on
> the wire, just to make absolutely sure all of the oddness is on the
> client's end?
>
> A string like `!D(MISSING)` sorta looks like a decoding error so
> perhaps it will be instructive to look at the bytes on the wire it's
> trying to decode, although I can't think what could be confused with
> an equals sign. It's not like that blooming Greek question mark
> (http://www.fileformat.info/info/unicode/char/037e/index.htm).
>
> Cheers,
>
>
>
>
> On 14 January 2017 at 18:47, Nigel Rantor <wig...@wiggly.org
> <mailto:wig...@wiggly.org <mailto:wig...@wiggly.org>>>
So, yes, I think it is in your client code
These are query parameters within the URL that is being requested, I'm
not sure why any particular content-type being used would have an effect
here.
Regards,