<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Failed to generate JWT</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/84721/failed-to-generate-jwt</link><description>Hello, 
 Every time I try to run the sample gnss in SDK 1.8, I got this error gnss_sample: Failed to generate JWT, error: -8 
 
 Please can you let me what this error means and what should I do to solve this problem?</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 22 Feb 2022 14:35:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/84721/failed-to-generate-jwt" /><item><title>RE: Failed to generate JWT</title><link>https://test-devzone.nordicsemi.com/thread/354390?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 14:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa76882a-8a6b-4112-98e2-288fbc7b689c</guid><dc:creator>user77782</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To build the Location sample with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/location/README.html#p-gps-support"&gt;P-GPS support&lt;/a&gt;, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;-DOVERLAY_CONFIG=overlay-pgps.conf&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;west&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-p&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-b&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrf9160dk_nrf9160_ns&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-DOVERLAY_CONFIG=overlay-pgps.conf&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;See&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/gs_modifying.html#cmake-options"&gt;&lt;span&gt;Providing CMake options&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for more instructions on how to add this option.&lt;/p&gt;
&lt;p&gt;If it cannot fix the issue, please create a new support case for the new issue. This is away from the original scope.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to generate JWT</title><link>https://test-devzone.nordicsemi.com/thread/354274?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 08:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d035ecb-5769-4716-bf14-c79fe0613250</guid><dc:creator>user91871</dc:creator><description>&lt;p&gt;Thanks, Amanda,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to update the modem to the last version 1.31 and generate a new certification and make the provisioning again.&lt;/p&gt;
&lt;p&gt;It was very complicated to generate new keys and assign the public key to nrfcloud. And besides that, it didn&amp;#39;t work by GUI of the website (NRFcloud ) to assign the public key so I had to use REST API to assign the public key of thingy91.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Finally, the Jwt-error doesn&amp;#39;t appear anymore but now it seems that the GNSS methods don&amp;#39;t work in the Location sample and only Cellular works fine, is there anything else I need to do to get AGPS/PGPS&amp;nbsp;working fine? or is there any easy way to test AGPS/PGPS of nrfcloud with thingy91 without those complications :)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Waiting for current time
Requesting location with short GNSS timeout to trigger fallback to cellular...
[00:00:02.084,808] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: Checking P-GPS header: Schema version:0, type:0, num:0, count:0&#x1B;[0m
[00:00:02.085,357] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps:   size:0, period (minutes):0, GPS day:0, GPS time:0&#x1B;[0m
[00:00:02.085,876] &#x1B;[1;33m&amp;lt;wrn&amp;gt; nrf_cloud_pgps: One or more fields are wrong&#x1B;[0m
[00:00:29.777,252] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Timeout occurred&#x1B;[0m
[00:00:29.777,862] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Failed to acquire location using &amp;#39;GNSS&amp;#39;, trying with &amp;#39;Cellular&amp;#39; next&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to generate JWT</title><link>https://test-devzone.nordicsemi.com/thread/352928?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 14:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2e8d27-5535-4787-a103-8381a3ff008a</guid><dc:creator>user77782</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please update&amp;nbsp;Update Certificates as this documentation&amp;nbsp;&lt;a href="https://docs.nrfcloud.com/Guides/GettingStarted/Devices/#securely-generating-credentials-on-the-nrf9160"&gt;https://docs.nrfcloud.com/Guides/GettingStarted/Devices/#securely-generating-credentials-on-the-nrf9160&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the modem firmware version? The latest version is &lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download?lang=en#infotabs"&gt;v1.3.1 here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to generate JWT</title><link>https://test-devzone.nordicsemi.com/thread/352797?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 06:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc698ae-ad6a-4bde-a7bd-07e4b74edb69</guid><dc:creator>user91871</dc:creator><description>&lt;p&gt;UPDATE:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tried the Location sample of SDK1.8 and I got this output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1  ***
Location sample started

Connecting to LTE...
Connected to LTE
Waiting for current time
Requesting location with short GNSS timeout to trigger fallback to cellular...
[00:00:02.002,593] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: Checking P-GPS header: Schema version:1, type:10, num:1, count:42&#x1B;[0m
[00:00:02.003,173] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps:   size:2006, period (minutes):240, GPS day:15372, GPS time:57600&#x1B;[0m
[00:00:02.003,784] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: Checking stored P-GPS data; count:42, period_min:240&#x1B;[0m
[00:00:02.004,699] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: num blocks:42, size:2048, first_free:-1&#x1B;[0m
[00:00:02.005,187] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: map:111111111111111111111111111111111111111111&#x1B;[0m
[00:00:02.005,645] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: Checking if P-GPS data is expired...&#x1B;[0m
[00:00:02.006,072] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: Looking for prediction for: GPS sec:1328863539, day:15380, time of day:31539, week:2197, day of week:1, time of week:117939, toe:7371&#x1B;[0m
[00:00:02.006,958] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600&#x1B;[0m
[00:00:02.007,812] &#x1B;[0m&amp;lt;inf&amp;gt; nrf_cloud_pgps: current offset into prediction set, sec:665139&#x1B;[0m
[00:00:02.008,300] &#x1B;[1;33m&amp;lt;wrn&amp;gt; nrf_cloud_pgps: data expired!&#x1B;[0m
[00:00:02.013,671] &#x1B;[1;33m&amp;lt;wrn&amp;gt; nrf_cloud_pgps: Predictions expired. Requesting predictions...&#x1B;[0m
[00:00:02.118,865] &#x1B;[1;31m&amp;lt;err&amp;gt; nrf_cloud_jwt: Failed to generate JWT, error: -8&#x1B;[0m
[00:00:02.119,293] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Failed to generate JWT, error: -8&#x1B;[0m
[00:00:23.582,885] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Timeout occurred&#x1B;[0m
[00:00:23.583,618] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Failed to acquire location using &amp;#39;GNSS&amp;#39;, trying with &amp;#39;Cellular&amp;#39; next&#x1B;[0m
[00:00:23.587,280] &#x1B;[0m&amp;lt;inf&amp;gt; location: No neighbor cell information from modem.&#x1B;[0m
[00:00:23.676,879] &#x1B;[1;31m&amp;lt;err&amp;gt; nrf_cloud_jwt: Failed to generate JWT, error: -8&#x1B;[0m
[00:00:23.677,337] &#x1B;[1;31m&amp;lt;err&amp;gt; multicell_location_nrf_cloud: Failed to generate JWT, error: -8&#x1B;[0m
[00:00:23.677,795] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Failed to acquire location from multicell_location lib, error: -8&#x1B;[0m
[00:00:23.678,344] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Location acquisition failed and fallbacks are also done&#x1B;[0m
Getting location failed

Requesting location with the default configuration...
[00:02:23.695,617] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Timeout occurred&#x1B;[0m
[00:02:23.696,258] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Failed to acquire location using &amp;#39;GNSS&amp;#39;, trying with &amp;#39;Cellular&amp;#39; next&#x1B;[0m
[00:02:24.883,544] &#x1B;[1;31m&amp;lt;err&amp;gt; nrf_cloud_jwt: Failed to generate JWT, error: -8&#x1B;[0m
[00:02:24.883,972] &#x1B;[1;31m&amp;lt;err&amp;gt; multicell_location_nrf_cloud: Failed to generate JWT, error: -8&#x1B;[0m
[00:02:24.884,460] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Failed to acquire location from multicell_location lib, error: -8&#x1B;[0m
[00:02:24.884,979] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Location acquisition failed and fallbacks are also done&#x1B;[0m
Getting location failed

Requesting low accuracy GNSS location...
[00:04:24.902,008] &#x1B;[1;33m&amp;lt;wrn&amp;gt; location: Timeout occurred&#x1B;[0m
[00:04:24.902,648] &#x1B;[1;31m&amp;lt;err&amp;gt; location: Location acquisition failed and fallbacks are also done&#x1B;[0m
Getting location timed out&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>