<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Faild to Get data from REST API of nRF Cloud : Invalid JWT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94214/faild-to-get-data-from-rest-api-of-nrf-cloud-invalid-jwt</link><description>Hello everyone: 
 I&amp;#39;m following the tutorial in JWT authentication on nRF Cloud | nRF Cloud Docs . 
 And I want to test the REST APIs by using curl command. 
 
 I have created my own UUID, CA certificates and Device certificates by using the python scripts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Nov 2022 03:25:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94214/faild-to-get-data-from-rest-api-of-nrf-cloud-invalid-jwt" /><item><title>RE: Faild to Get data from REST API of nRF Cloud : Invalid JWT</title><link>https://devzone.nordicsemi.com/thread/397994?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 03:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b8b3a6-4d94-466f-9858-9e93ff679522</guid><dc:creator>Jayant Tang</dc:creator><description>&lt;p&gt;Hello Andrew:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have deleted the fake device I created, and re-provision it.&lt;/p&gt;
&lt;p&gt;And now I can get the HTTP code 206 and the binary data from the endpoint successfully.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669692326204v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, I found that there may be a mistake in the 6th&amp;nbsp;step&amp;nbsp;in&amp;nbsp;&lt;a href="https://docs.nrfcloud.com/Devices/Security/JWT/#key-extraction-from-a-device-certificate"&gt;key-extraction-from-a-device-certificate&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The command showed there is not the&amp;nbsp; &lt;a href="https://api.nrfcloud.com/v1/#operation/FetchBulkOpsRequest" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;FetchBulkOpsRequest&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;endpoint, but the FetchDevice endpoint:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;curl --request GET \
--url https://api.nrfcloud.com/v1/devices/$DEVICE_ID \
  --header &amp;#39;Authorization: Bearer $API_KEY&amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Faild to Get data from REST API of nRF Cloud : Invalid JWT</title><link>https://devzone.nordicsemi.com/thread/397967?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 19:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48480ec8-ac70-4273-b0b1-e660f2333f22</guid><dc:creator>AndrewKostka</dc:creator><description>&lt;p&gt;Hello Jayant:&lt;br /&gt;We&amp;#39;ve identified an issue that was affecting the ProvisionDevices endpoint on nRF Cloud. Can you delete those devices, then attempt to re-provision them? This should resolve your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Faild to Get data from REST API of nRF Cloud : Invalid JWT</title><link>https://devzone.nordicsemi.com/thread/397858?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 12:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b96b66-4cc2-4603-84e9-dcbdd268582e</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am looking into it, I&amp;#39;ll try it myself and come back to you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>