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

I am struggling to pass a body with my POST request #33

Open
jdarling20 opened this issue Sep 11, 2020 · 0 comments
Open

I am struggling to pass a body with my POST request #33

jdarling20 opened this issue Sep 11, 2020 · 0 comments

Comments

@jdarling20
Copy link

Expected Behavior

What I submit a POST to my login API using the WebRequest.AddParameter node and supplying a string node with my JSON body, I would expect that my parameters email_address and password are passed in the body of my request and that my response will be as I see in postman or in my application.

Actual Behavior

What I am seeing instead is that my parameters email_address and password are not passed and my request return an error stating that my email_address parameter's value is undefined.

Steps to Reproduce the Problem

I've attached the .dyn file that I'm using here, and copied the contents of the string node that I'm using with for the contents of the Body for my request.

Get Data from API_post.zip

I would imagine that I simply have a syntax issue, potentially with my quotes or apostrophes.

As a note, I am using this login process to receive a JWT so that I can pass it with my other requests. If I log in via Postman and copy the contents of my JWT into my GET request (not included in this file), I am able to return a 200 response with my data as-expected. The bottleneck I seem to be having here is restricted to how I properly pass a JSON body with my POST request.

Specifications

- Dynamo : 2.3
- Operating system : Windows 10 (1809)
- .NET :  4.8
@jdarling20 jdarling20 changed the title I am struggling to I am struggling to pass a body with my POST request Sep 11, 2020
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

1 participant