SOLVED

Error while reading manifest.json: Invalid value(s) specified for validDomains[0]

Brass Contributor

While developing an application for MS Teams, I am using ngrok for exposing localhost URL to HTTPS. Till today it was working, but from today morning I am getting this issue of the invalid domain as below.

 

Error while reading manifest.json: Invalid value(s) specified for validDomains[0]: "https://e9d21d77e3f6.ngrok.io"

 

It is a warning but not able to install the app in MS Teams. Is there any changes made by Microsoft?

26 Replies

Actually it may be a different problem - the ngrok URLs do expire, but that would cause a different issue.

 

It's asking for a domain but you are providing a URL. Get rid of the https:// and try that. 

OK folks sorry for the confusion, this may indeed be due to a recent bug in App Studio.

URLs are sometimes used to populate the validDomains array but the https:// should be stripped, but there was a bug that allowed URLs to flow through unmodified. Since validDomains takes a list of domains, not URLs, this caused an error.

A fix in App Studio should be out in production by the end of the day.

Sorry for the confusion - maybe I wasn't reading closely enough but I didn't see that this was in App Studio and that the validDomains array wasn't manually editable.
best response confirmed by Kaushal Khamar (Brass Contributor)
Solution

@Bill Bliss @martinlingstuyl @timwiffen @Adrian42 @Mart Lehtmets 

Seems the issue has been resolve from Microsoft. Now I am able to add the app in Teams.

I can confirm that this is now working for me.

@Mart Lehtmets I faced same issue .I open ngrok dashboard from localhost:4040 copied tunnel url and replaced endpoint url from azure and replaced validDomains from manifest .json now its working. It happened beacause ngrok url got refreshed in my case .Thank you

I am facing this error : Error while reading manifest.json: The file could not be found in the app package.
Do you have any solution?