Unable to POST to localhost:8080 using Guzzle #1772
blu-regard
started this conversation in
General
Replies: 1 comment
-
If the app is running on your host machine (Mac), then it's not "local" relative to the apps running in Docker. The IP of the Docker VM (Linux) is To access an app running on port |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I'm trying to get Drupal 10 to send a POST request to a local ExpressJS app that I have running on the same computer. I can hit both apps just fine using Postman but when I try to get Drupal to interact with the ExpressJS app running on localhost:8080 I get a connection refused. I get this same error when I remote into the Docksal container.
Steps to reproduce the issue:
fin exec curl -I http://localhost:8080
but get the same errorDescribe the results you received:
cURL error 7: Failed to connect to localhost port 8080: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:8080/my/api
Describe the results you expected:
A status code 200, currently getting a 0.
Output of
fin config
:fin config output
Output of
fin sysinfo
:fin sysinfo output
Beta Was this translation helpful? Give feedback.
All reactions