Hi there, I’m looking to configure the httpServerF...
# help
t
Hi there, I’m looking to configure the httpServerFactory in my wiremock instance which is running via a Dockerfile. Anyone any ideas on how I could do this? Thank you
for a bit more context, I’m looking to apply this workaround (https://github.com/wiremock/wiremock/issues/2585) to a Docker wiremock container. Thanks
t
HttpServerFactory
is an extension so you can create your own, package it in a JAR file with a service definition and mount it under the extensions folder in the docker container. Example of an
ExtensionFactory
service definition: https://github.com/wiremock/wiremock-grpc-extension/blob/main/src/main/resources/M[…]ices/com.github.tomakehurst.wiremock.extension.ExtensionFactory (you can also just use
Extension
if you only have a single extension to initialise)
t
Ah great, thanks @Tom!
👍 1
Sorry one more, is there an example of using Extension to create a new one? Thanks
Found one, thanks still.
👍 1
t
Hi Tom, sorry haven’t been able to look at this since your reply but I’ve just added the extension I created to the docket file and it doesn’t seem to be working as I’d hoped (resolving the issue with large SOAP requests). Are there any plans to try and resolve this issue soon? Thanks
t
WireMock 3.5.2 lets you disable HTTP/2 on startup, which I suggest you do for now
The core issue is quite knotty. Seems some clients try to do an HTTP 1.1->2 upgrade when they shouldn’t and Jetty can’t handle it.
https://github.com/jetty/jetty.project/issues/11588 if you’re interested in the details
361 Views