https://kotlinlang.org logo
#http4k
Title
# http4k
c

Cosmin Victor Celea

07/08/2020, 1:56 PM
Getting this error: “header ‘x-http4k-context’ is required” when calling
Copy code
contexts[request]
Any ideas?
d

dave

07/08/2020, 2:02 PM
have you added the Intialise filter to the chain?
Copy code
InitialiseRequestContext(contexts)
c

Cosmin Victor Celea

07/08/2020, 2:04 PM
yep
What is weird is that it worked fine until now, and for some reason, it stopped working. I tried to roll back the changes but no luck.
d

dave

07/08/2020, 2:05 PM
hmm - have you done a complete rebuild?
we haven't changed that code for a long long time
c

Cosmin Victor Celea

07/08/2020, 2:05 PM
Will try to rebuild everything.
the request var was the problem it was being rewritten. Thanks for the help
d

dave

07/08/2020, 2:22 PM
np. where shall I send the invoice? 😜
c

Cosmin Victor Celea

07/08/2020, 2:23 PM
d

dave

07/08/2020, 2:24 PM
🙂
c

Cosmin Victor Celea

07/08/2020, 2:24 PM
worked? 😂
75 Views