Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make API request calls against localhost : @ Error: apiRequestContext.post: connect ECONNREFUSED ::1 #3

Open
kiarrasayshi opened this issue Jan 13, 2025 · 1 comment
Assignees

Comments

@kiarrasayshi
Copy link

Following all setup instructions and steps in the tutorial leads me to an issue with making the post request against the local API. The rest of the test runs fine using local host and I am able to make this request from Postman. This is my first attempt at testing API calls using Playwright against a local environment. I am able to make API request calls using playwright against live APIs in test and production environments. I don't think this is an issue with your tutorial per se as I've seen other people having this issue and requesting help online without finding good fixes, but if this is a common issue, it may be helpful to mention a fix (if you know of one!) in the tutorial steps.

Note I get this error whether I run the tests in the terminal or through the playwright ui, but, again, not when using Postman to make the request.

As I'm still able to make the API request in postman, I've just commented out this line of code so I can continue with the tutorial, which I am finding incredibly helpful! Just wanted to document this issue in case anyone else runs into it while working through the tutorial.
playwright tutorial error

@AutomationPanda
Copy link
Owner

Thanks for letting me know. That's strange. I'll keep an eye open for it.

@AutomationPanda AutomationPanda self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants