6 Replies
      Latest reply on Feb 12, 2019 6:51 AM by joemasilotti
      joemasilotti Level 1 Level 1 (0 points)

        Our MapKit JS dashboard is now entirely blank and reporting no data.

         

        And our API key is returning "initialization failed because the daily usage limit has exceeded" leaving us with nothing to debug.

         

        What can we do to fix this?

        • Re: MapKit JS Dashboard Empty
          pgm8705 Level 1 Level 1 (0 points)

          Same here. Something must be up.

          • Re: MapKit JS Dashboard Empty
            theonlyvicki Apple Staff Apple Staff (30 points)

            Thanks for reporting this. Looking into it, and will provide an update as soon as possible.

            • Re: MapKit JS Dashboard Empty
              joemasilotti Level 1 Level 1 (0 points)

              An update after working with the MapKit JS support team over email:

               

              • The dashboard is back up and running for us. I can't comment on other users, but support is aware of the issue.
              • Our token was actually invalid, the error message being reported was coming from another line in the code.
                • The token was invalid because were were sending duplicate "claims" (the keys you send to generate the JWT).
                • The Ruby gem JWT automatically adds typ and alg. Us adding it to our code added the keys twice, which makes the key invalid.
              • Re: MapKit JS Dashboard Empty
                theonlyvicki Apple Staff Apple Staff (30 points)

                > Our MapKit JS dashboard is now entirely blank and reporting no data.

                 

                Thanks for reporting this, looking into it.

                 

                > And our API key is returning "initialization failed because the daily usage limit has exceeded" leaving us with nothing to debug.

                 

                I believe the token is being rejected because it contains duplicate claims. To check your token, execute this at the command line (substitute your token for your-token-here, but keep the quotes around it):

                 

                echo "your-token-here" | tr "." "\n" | head -2 | base64 -D

                 

                To check just the token header, use `head -1` in the above command.