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

Change the reported url and method #2139

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harcop
Copy link

@harcop harcop commented Sep 12, 2022

🤔 What's changed?

Fix the reported url and method

⚡️ What's your motivation?

Fix the misleading error message. If the second http request fails, the error message refers to the first request, this change fixes this so that the second request is used instead.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.237% when pulling 7b9e767 on SmartBear:Fix-http-error-message into 7298f30 on cucumber:main.

Copy link
Contributor

@davidjgoss davidjgoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this going @harcop!

Would you be able to:

  • Remove the .tool-versions file
  • Revert changes to the package-lock.json (looks like you have an older version of npm there)
  • Remove the console.log statements

const req = httpx.request(url, {
method,
headers: allHeaders,
timeout: 10000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did adding this solve a problem for you?

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

Successfully merging this pull request may close these issues.

3 participants