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

--invoke-url appends "c" to the end with GitBash Windows #32

Open
bazmurphy opened this issue Dec 13, 2023 · 1 comment
Open

--invoke-url appends "c" to the end with GitBash Windows #32

bazmurphy opened this issue Dec 13, 2023 · 1 comment

Comments

@bazmurphy
Copy link

bazmurphy commented Dec 13, 2023

On Windows 11 using GitBash MINGW64
(the command line tool bundled with Git for Windows, downloaded from from https://git-scm.com/downloads)

When I try to run the

npx aws-api-gateway-cli-test [other flags] --invoke-url='https://**********.execute-api.eu-west-2.amazonaws.com'

I receive:

Getting temporary credentials
Making API request
getaddrinfo ENOTFOUND uxh91gk4ta.execute-api.eu-west-2.amazonaws.comc

^ ℹ️ Note the additional "c" at the end of the url that is not present in the original --invoke-url string

This seems to be a bug in how MINGW64 translates the url.. hence the stray "c" character?
But I would like to know if other's experience this?


  • When I run the above command on the same machine but using Windows Subsystem for Linux Ubuntu it is successful ✅

  • When I run the above command on the same machine but using Windows Command Prompt (but adhering to Windows Command Prompt formatting) it is successful ✅

  • When I run the above command on a different machine with Linux the it is successful ✅

  • All 3 give a successful response:

    Getting temporary credentials
    Making API request
    {
      status: 200,
      statusText: 'OK',
      data: {
        userId: 'eu-west-2:************************',
        noteId: '************************',
        content: 'hello world',
        attachment: 'hello.jpg',
        createdAt: 1702480927787
      }
    }
    
@vaughankraska
Copy link

I am having the same issue.

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