-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upload app logo resulted in Error #745
Comments
Hi @ritu-rubrik , Thanks for trying the Graph Go SDK. Could you retry the code without setting the content header headers := abstractions.NewRequestHeaders()
- headers.Add("Content-Type", "image/jpg")
configuration := &applications.
ItemLogoRequestBuilderPutRequestConfiguration{
Headers: headers,
} |
Hi @rkodev I had initially tried it without setting the Content-Type
However I ended up getting the below error which resulted in me adding the Content-Type: |
Also one another question I have is if the response is Bad Request , why is it not getting set in OData Error as it is a 4XX status code, instead it is getting set in the response body which is leading to the initial error. |
Thanks for pointing this out,
|
@rkodev Thanks for acknowledging the issue. Is there a timeline for this that I can expect for this change to be available? |
@ritu-rubrik The fix should be ready within the next 7 days |
@rkodev Can you open a corresponding issue in the metadata repo please? |
Using the below code to upload an Logo for a given App:
However this results in the below error:
content type text/html does not have a factory registered to be parsed
On debugging further it was found that the APi call results in a a Bad Request 400 erro and the same is getting set in response body resulting in above error.
Looks like Content-tye is set to 2 values image/jpeg and application/octet-stream . Not sure if this is causeing the request to the MS graph API to fail
The text was updated successfully, but these errors were encountered: