<?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>Invalid JWT header</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101046/invalid-jwt-header</link><description>I&amp;#39;m trying to call GetAssistanceData ( https://api.nrfcloud.com/v1/location/agps ) But the response is: { &amp;quot;message&amp;quot;: &amp;quot;Invalid JWT header: \&amp;quot;alg\&amp;quot; field must be set to valid signing algorithm.&amp;quot;, &amp;quot;code&amp;quot;: 40003 } I have generated my JWT in Manage Service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jun 2023 23:32:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101046/invalid-jwt-header" /><item><title>RE: Invalid JWT header</title><link>https://devzone.nordicsemi.com/thread/432142?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 23:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c29d13d0-b386-4987-9c55-357ce892c58a</guid><dc:creator>Lincoln Thomas</dc:creator><description>&lt;p&gt;That error message indicates that the JWT could not be decoded in some way (not necessarily a problem with the signing algorithm field).&lt;/p&gt;
&lt;p&gt;Your variable NRF_CLOUD_API_KEY implies you are using your API key, which is found in the nrfcloud.com portal under the User Account page. This is different from a JWT, such as the one generated for you from the Manage Service Key page. Are you sure you&amp;#39;re passing the JWT?&lt;/p&gt;
&lt;p&gt;Check your HTTP traffic to verify that the Bearer token contains the same string as the JWT from the Manage Service Key page. Also look for things such as leading/trailing extra characters / newlines etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>