Question for `pact-stub-server`: I'm getting this...
# general
j
Question for `pact-stub-server`: I'm getting this error
Copy code
2024-05-06 12:35:51 pact-stub-server-1  | 2024-05-06T16:35:51.313175Z DEBUG tokio-runtime-worker hyper::proto::h1::conn: parse error (invalid HTTP method parsed) with 230 bytes
2024-05-06 12:35:51 pact-stub-server-1  | 2024-05-06T16:35:51.313206Z DEBUG tokio-runtime-worker hyper::proto::h1::role: sending automatic response (400 Bad Request) for parse error
2024-05-06 12:35:51 pact-stub-server-1  | 2024-05-06T16:35:51.313262Z DEBUG tokio-runtime-worker hyper::proto::h1::io: flushed 84 bytes
but it's definitely a POST method, which of course works correctly with our normal endpoint. How can I fix this?
some quick googling shows it could be an issue since it's a preflight request, how do I get pact stub server to handle these gracefully?
Figured it out! Was using
https
instead of
http
in the url
😆 1