ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
141 stars 85 forks source link

Go: hydra-client-go 1.11.8 model error, json unmarshal error #182

Closed sixleaveakkm closed 2 years ago

sixleaveakkm commented 2 years ago

Preflight checklist

Describe the bug

I think this is the same problem resolved in version 1.11.7. https://github.com/ory/hydra/pull/3074 https://github.com/ory/hydra/issues/3058

hydra try to Unmarshal response with map[string]map[string]interface{} for some item, which I think should be map[string]interface{}, but got json: cannot unmarshal ...

This problem exists at

Reproducing the bug

Launch hydra server, with a proper setting, and create two clients. Use go sdk to handle login/consent requests.

For

When initial auth, pass a valid id token value as id_token_hint,
this will cause that json: cannot unmarshal ... on endpoints: Get a Login Request Get Consent Request Information

And when Context is provided in AcceptLoginRequest, and then try to introspect the token, OAuth2TokenIntrospection will give a similar error.

Relevant log output

No response

Relevant configuration

No response

Version

1.11.8

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Binary

Additional Context

No response

aeneasr commented 2 years ago

This should be resolved now