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

The input does not contain any JSON tokens Calling local Azure Function #42

Open
Ofer-Gal opened this issue Apr 24, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Ofer-Gal
Copy link

Ofer-Gal commented Apr 24, 2023

Describe the bug

When running a POST in debug of an azure function. the body of the request is empty so an error:"The input does not contain any JSON tokens" is raised.

To Reproduce
the code:
POST http://localhost:7078/api/CreateNoProjectSite Content-Type: application/json { "SiteDisplayName":"NewTeamSite1", "SiteName":"NewTeamSite15", "SiteDescription":"NewTeamSite15", "SiteMembers":["[email protected]"], "SiteOwners":["[email protected]","[email protected]"], "Sitetype":1 }
runs fine in other Rest client. but fails to send the body from a .HTTP or .REST file in same VS

Expected behavior
Run like a REST client

Screenshots
image

Thank you

@Ofer-Gal Ofer-Gal added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant