<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API request isn't working in Unity in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1547244#M992</link>
    <description>&lt;P&gt;Are you loading the sample scenes individually or through the Sample Viewer UI? How do you set the API key (project settings, ArcGISMap Actor, or Sample Viewer UI)?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 18:11:20 GMT</pubDate>
    <dc:creator>AShahbaz</dc:creator>
    <dc:date>2024-10-09T18:11:20Z</dc:date>
    <item>
      <title>API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1527066#M952</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using Unity 2022.3.42f and&amp;nbsp;ArcGIS Maps SDK for Unity version 1.6.0.&lt;/P&gt;&lt;P&gt;I'm trying to follow the tutorial here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/unity/maps/tutorials/display-a-map-api/" target="_blank"&gt;https://developers.arcgis.com/unity/maps/tutorials/display-a-map-api/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an API key, as shown in the first image. I have all the code copied. Both the map component and the camera are successfully created, but the map itself doesn't show. The inspector for the map component doesn't show the basemap, elevation, or layers either, as shown in the second image.&lt;/P&gt;&lt;P&gt;I have also tried using the map creator UI and samples and gotten similar results, making me inclined to believe that the issue is with my API key or request. When I check the developer credentials, it also says that the API key has had no usage.&lt;/P&gt;&lt;P&gt;Thanks for the help, sorry if this post was silly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 13:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1527066#M952</guid>
      <dc:creator>JustinCresta</dc:creator>
      <dc:date>2024-08-26T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1535546#M971</link>
      <description>&lt;P&gt;I am having the same issue, were you able to solve it?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 15:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1535546#M971</guid>
      <dc:creator>HadidIgis</dc:creator>
      <dc:date>2024-09-05T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1537013#M979</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you confirm that you have attached the created script to an empty game object (or an existing game object)?&lt;/LI&gt;&lt;LI&gt;Can you load any of the sample scenes with your API key?&lt;/LI&gt;&lt;LI&gt;Could you add a &lt;A href="https://developers.arcgis.com/unity/maps/view-state/" target="_blank" rel="noopener"&gt;View State Logger&lt;/A&gt; to the map game object and monitor the console for any errors or warnings? (you may need to import the plugin samples if you haven't done yet)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 10 Sep 2024 18:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1537013#M979</guid>
      <dc:creator>AShahbaz</dc:creator>
      <dc:date>2024-09-10T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1546840#M991</link>
      <description>&lt;P&gt;Hi, I am having the same issue when using the map creator UI (I have not tried the API method). I can confirm I cannot load any of the sample scenes: I am getting a "no viewport" error in every case.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The following link tells me that means "t&lt;SPAN&gt;here is not a valid camera, viewport properties, or spatial reference" but I fail to see how that can be the case even in the samples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/view/state/arcgisviewstatus/" target="_blank"&gt;ArcGISViewStatus | ArcGIS Maps SDK for Unity | Esri Developer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 06:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1546840#M991</guid>
      <dc:creator>AnirudhJ</dc:creator>
      <dc:date>2024-10-09T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1547244#M992</link>
      <description>&lt;P&gt;Are you loading the sample scenes individually or through the Sample Viewer UI? How do you set the API key (project settings, ArcGISMap Actor, or Sample Viewer UI)?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 18:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1547244#M992</guid>
      <dc:creator>AShahbaz</dc:creator>
      <dc:date>2024-10-09T18:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1547472#M993</link>
      <description>&lt;P&gt;I am loading the sample scenes through Unity individually, by double-clicking on each scene.&lt;BR /&gt;&lt;BR /&gt;I set the API key by clicking on the ArcGISMap GameObject that gets created and setting the API key there. I have also tried setting the API key in the Map Creator UI panel:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-10 113235.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116956iCB12A99594CE9692/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-10 113235.png" alt="Screenshot 2024-10-10 113235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In every case I am getting the same error, with no map data being loaded:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnirudhJ_0-1728540328449.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116957i534D95E28958E38E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnirudhJ_0-1728540328449.png" alt="AnirudhJ_0-1728540328449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 06:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1547472#M993</guid>
      <dc:creator>AnirudhJ</dc:creator>
      <dc:date>2024-10-10T06:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548368#M994</link>
      <description>&lt;P&gt;Hi, sorry for the ping. I am still facing the same issue - the map does not load even now. What options can I try to get it to work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnirudhJ_0-1728894672136.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117161iC4580385A844CAFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnirudhJ_0-1728894672136.png" alt="AnirudhJ_0-1728894672136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In every case I am getting the same error, with no map data being loaded:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnirudhJ_1-1728894672096.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117162i09A497C3575094D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnirudhJ_1-1728894672096.png" alt="AnirudhJ_1-1728894672096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548368#M994</guid>
      <dc:creator>AnirudhJ</dc:creator>
      <dc:date>2024-10-14T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548548#M995</link>
      <description>&lt;P&gt;Hi, it is a bit difficult to tell what is going on since loading the sample scenes should definitely work, here are a few ideas to debug the issue:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I'd try playing the sample viewer scene (under "Assets/SampleViewer/SampleViewer.unity" ) and entering the API key in the UI there before picking a scene from the list&lt;/LI&gt;
&lt;LI&gt;Could you confirm that you are using the latest plugin version (1.6) and the current Samples project? What Unity version are you using?&lt;/LI&gt;
&lt;LI&gt;Is there any error messages related to the plugin when you open Unity (beside the warnings from `ArcGISViewState`). If so, please remove the plugin and reload it from tarball or asset store&lt;/LI&gt;
&lt;LI&gt;Please reload the built-in sample content (in the package manager window click on the plugin, open the Sample tab and click Reimport). Test to see if those samples work (e.g., "Assets/Samples/ArcGIS Maps SDK for Unity/1.6.0/Sample Content/Scenes/HDRP/ComponentLocal.unity")&lt;/LI&gt;
&lt;LI&gt;Verify that the API key works with any other Esri services. You could for example attach your API key at the end of the following URL and open it in a browser: `&lt;A href="https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation?token=" target="_blank"&gt;https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation?token=&lt;/A&gt;`. If there is no issue with the API key, you should see a long json text, otherwise there will be an error message.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 14 Oct 2024 23:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548548#M995</guid>
      <dc:creator>AShahbaz</dc:creator>
      <dc:date>2024-10-14T23:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548581#M996</link>
      <description>&lt;P&gt;Hi, thank you for the reply. I tried verifying whether the API key still works and I got error 498. Apparently this means the access token is expired or invalid? I regenerated the token by going to my token credentials and found that the new regenerated key is working.&lt;BR /&gt;&lt;BR /&gt;The API key was not supposed to expire for two more weeks. I set the expiration date of the newly regenerated key to be at the end of 2024 for now. Is there a reason why the key expired prematurely? How can I prevent this happening for future keys?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 07:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548581#M996</guid>
      <dc:creator>AnirudhJ</dc:creator>
      <dc:date>2024-10-15T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: API request isn't working in Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548754#M1002</link>
      <description>&lt;P&gt;Glad it is working now. I am not sure why the API key would expire. It shouldn't have happened. If this happens again, please let us know (possibly in the general developers &lt;A href="https://community.esri.com/t5/developers-questions/bd-p/developers-questions" target="_self"&gt;community&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 17:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/api-request-isn-t-working-in-unity/m-p/1548754#M1002</guid>
      <dc:creator>AShahbaz</dc:creator>
      <dc:date>2024-10-15T17:38:40Z</dc:date>
    </item>
  </channel>
</rss>

