Skip to content

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

@bazmurphy

Description

@bazmurphy

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
      }
    }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions