You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran a git bisect and narrowed it down to commit 3cab92c3172128b37c277e89d491df3fe108bc12. I can try to fix it after I'm done with refactor-metrics, unless someone beats me to it.
I didn't test for subscriptions but it's probably happening there too.
The text was updated successfully, but these errors were encountered:
Actually looking back at this, this is not really a bug - it's leftover from DGS_RESPONSE_HEADERS_KEY getting removed from extensions.
I'll leave this open if you want me to fix it during my next PR, otherwise I'll close. Test case is easy, just add this to the test added during that PR:
...
assertThat(result.headers["myHeader"]).contains("hello")
assertThat(result.body).isInstanceOfSatisfying(ByteArray::class.java) { body ->val mapper = jacksonObjectMapper()
val (_, _, extensions) = mapper.readValue(body, GraphQLResponse::class.java)
assertThat(extensions).isNull()
}
On Tue, Oct 18, 2022 at 5:17 PM Anthony Oleinik ***@***.***> wrote:
Actually looking back at this, this is not really a bug - it's leftover from
DGS_RESPONSE_HEADERS_KEY
<3cab92c#diff-13e2b14fd77f54bc584e10e2f751a23820d20efc08b34a0d4e2abe08aee01154R246>
getting removed from extensions.
I'll leave this open if you want me to fix it during my next PR, otherwise
I'll close. Test case is easy, just add this to the test added during that
PR:
...
assertThat(result.headers["myHeader"]).contains("hello")
assertThat(result.body).isInstanceOfSatisfying(ByteArray::class.java) { body ->
val mapper = jacksonObjectMapper()
val (_, _, extensions) = mapper.readValue(body, GraphQLResponse::class.java)
assertThat(extensions).isNull()
}
—
Reply to this email directly, view it on GitHub
<#1278 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2XLG7U55IWV2LOAJNFPLWD44ZBANCNFSM6AAAAAARIQBAJI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Steps to reproduce
Run the default DGS app with the following query:
or a mutation:
Expected behavior
the server should respond with:
or
Actual behavior
the server responds with:
or:
I ran a
git bisect
and narrowed it down to commit3cab92c3172128b37c277e89d491df3fe108bc12
. I can try to fix it after I'm done withrefactor-metrics
, unless someone beats me to it.I didn't test for subscriptions but it's probably happening there too.
The text was updated successfully, but these errors were encountered: