"The parent is missing." error when performing HTTP request with string body (required for x-www-form-urlencoded)
1.0.1
Steps to reproduce the behavior:
Run the HTTP Request


hello @hraz-msft - we will investigate this today. thank you!
@hraz-msft could you try to use GET? I've checked in the msgraph doc, we should use GET instead of POST for this API. https://docs.microsoft.com/en-us/graph/api/user-get
@luhan2017 Yes, you are correct. This URL is for the screenshot, it is not the actual URL that I use.
The issue is that sending POST request with string code (no matter to which URL or Body) the request fails
I also have this experience when trying to get an Auth token for D365CE... using both get and post.
@hraz-msft @rhalaly @triciasinclair Thanks for reporting this issue. I've got what you mean. This is a bug in the botbuilder-dotnet httprequest body handling logic. @zidaneymar will help to prepare a fix on this, and we will keep you posted.
@zidaneymar I still didn't see it's working nightly build of 6/16 still has this issue
@hraz-msft , could you please try the nightly build of 6/17 or 6/18, it should be included there.
hi, i encountered an error "The parent is missing" when i try to make a POST http method. My aim is to get the token but its not working. Please refer to the link.
https://docs.microsoft.com/en-us/graph/auth-v2-user
Current Bot Framework Composer Version (Please see image ref. below):

@samaroj We didn't include the sdk fix in the composer electron app for now. could you try to do the following steps to migrate this issue?
Please let me know if it still not works.
@samaroj We didn't include the sdk fix in the composer electron app for now. could you try to do the following steps to migrate this issue?
1. go the runtime config page -> Use Custom Runtime 2. go the runtime folder under your bot update the sdk packages (replace 4.9.3 with 4.10.0-preview-200627-141514 in every csproj file) And try to start your bot again.Please let me know if it still not works.
Thank you, @luhan2017. I'm trying this now.
@samaroj We didn't include the sdk fix in the composer electron app for now. could you try to do the following steps to migrate this issue?
1. go the runtime config page -> Use Custom Runtime 2. go the runtime folder under your bot update the sdk packages (replace 4.9.3 with 4.10.0-preview-200627-141514 in every csproj file) And try to start your bot again.Please let me know if it still not works.
Hi @luhan2017 it works. I only update the packages on the .WebApp csproj file.
i'm not sure if this issue i'm gonna share is related to this thread. Already fixed the "The parent is missing" error by updating it to preview packages. Then i have now this issue. Please refer to the link:
Bot Framework Emulator Output: https://ibb.co/qdrjXWG
Bot Framework Composer Output: https://ibb.co/y8jFg2P
based on the error i don't have "grant_type in the request body" but I already have it on my HTTP request body on the Composer.
I tried to do this using Power Automate and it works. Maybe there's a problem in the Composer's Send and HTTP request Body textbox.
It now works for me as well. Thanks all!
@samaroj do you have grant_type as a parameter in the body?
@samaroj do you have grant_type as a parameter in the body?
yup. but it gets an error. i updated my attached images link on the thread. You'll see it on the Composer.
i can see the initial values but not grant_type. I ask because I have the below value and it works.
client_id=[clientid]&username=[userid] &password=[password]&grant_type=password&resource=[resource]&client_secret=[clientsecret]
i can see the initial values but not grant_type. I ask because I have the below value and it works.
client_id=[clientid]&username=[userid] &password=[password]&grant_type=password&resource=[resource]&client_secret=[clientsecret]
i see, you use delegated permission. i'm using application permission.
IT WORKS! and still using the application permission. What i did is instead of adding the "Content-Type": "application/x-www-form-urlencoded" to the Headers, i put the application/x-www-form-urlencoded to the Content type textbox.

upon checking the JSON output from the Bot Framework Emulator, if you don't indicate you content type on the textbox, the Content-type is set automatically to "application/json"

If you indicate it, this will look like this,

Most helpful comment
Fixed in PR:https://github.com/microsoft/botbuilder-dotnet/pull/4064