Forum Discussion

Kaushal Khamar's avatar
Kaushal Khamar
Brass Contributor
Sep 16, 2020
Solved

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

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?

  • 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. 

    • Bill Bliss's avatar
      Bill Bliss
      Icon for Microsoft rankMicrosoft
      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.
      • timwiffen's avatar
        timwiffen
        Copper Contributor
        I can confirm that this is now working for me.
  • Kaushal Khamar with the free version of ngrok, the xxxxxxxx.ngrok.io links expire after 8 hours, so that's your problem. If you don't want to keep updating your URLs, you might want to purchase the basic version which gives you custom subdomains that don't expire.

    • Kaushal Khamar's avatar
      Kaushal Khamar
      Brass Contributor

      Hi Bill Bliss  There is no issue of ngrok. ngrok URL is generated just 5 minutes before. Even i am using my private domain url is not working.

  • bilal_khan's avatar
    bilal_khan
    Copper Contributor

    Kaushal Khamar  Yesterday it was working fine. Facing same issue. 

    Is anyone got it resolved or still facing ? 
    Should we need to create app again ?

    • Kaushal Khamar's avatar
      Kaushal Khamar
      Brass Contributor

      bilal_khan 

       

      No, Not any resolution. No one is able to install the app in MSTeams. I have tested in multiple systems with multiple tenants. Seems issue with Microsoft Teams.

    • Mart Lehtmets's avatar
      Mart Lehtmets
      Brass Contributor

      bilal_khan 

      Wow...seems that Teams developers have released some buggy version out. Hope they address this issue asap.

  • Adrian42's avatar
    Adrian42
    Copper Contributor

    Kaushal Khamar Same issue here. A few days ago it was working fine. Now we can no longer deploy our custom Teams application using the ngrok domains like. 

     

     

     

    "validDomains": [
      "https://xxxx.ngrok.io"
    ]

     

     

    We have tried to omit the "https", but that does not work either.

     

     

    "validDomains": [
      "xxxx.ngrok.io"
    ]

     

     

     Hopefully Microsoft will fix this issue soon.

  • Mart Lehtmets's avatar
    Mart Lehtmets
    Brass Contributor

    Kaushal Khamar 

    Exactly the same thing. Yesterday everything worked well and I could Install the custom application with domains, but today I receive the same error 😕

    rror while reading manifest.json: Invalid value(s) specified for validDomains[0]: "https://xx.xxx.xx"
    Invalid value(s) specified for validDomains[1]: "https://xx.xxx.xx"
    Invalid value(s) specified for validDomains[2]: "https://xx.xx.xx"

     

    Very strange behaviour.

    • BhagyashreeKulkarni33's avatar
      BhagyashreeKulkarni33
      Copper Contributor

      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

Resources