Skip to content

$ in lex.models URL problem #41

@CalHinshaw

Description

@CalHinshaw

I generated the api file for the lex model service and all of the methods I've tried have worked except for put_bot, which fails with an InvalidSignatureException.

The canonical string it expected had the url /bots/test/versions/%2524LATEST/, but the canonical string generated by the library had the url /bots/test/versions/$LATEST/. When I change the canonical string in the library to match the one aws expects the error changes to <AccessDeniedException><Message>Unable to determine service/operation name to be authorized</Message></AccessDeniedException>.

This has me thinking that the url is getting encoded twice before being sent but I'm really not sure. I looked through HTTPoison and hackney and only saw hackney url encoding string and now I'm out of ideas.

I'm happy to fix this and submit a PR but I'm not sure where to go from here. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions