Graph API giving error in publish app to our catalog

Priyamvada Bhardwaj 0 Reputation points

We are using Microsoft Teams Graph API to publish the app to our catalog

This is how we are using it

const zip = new JSZIP();

			zip.file("manifest.json", jsonData);
			zip.file("color.png", colorIconRes);
			zip.file("outline.png", outlineIconRes);

			//  Generate the zip
			const zipFileContent = await zip.generateAsync({ type: "nodebuffer" });

			const response = await graphClient.api('/appCatalogs/teamsApp')

But we are getting this error
Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format."

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
4,862 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
873 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 41,906 Reputation points


    Thank you for your question and reaching out.

    This may be because your payload is not in a valid json format, this error occurs. You must remove the quotation marks. Instead of ", use ".

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments