Result buffer too small for A-GNSS data

Hi,

I'm running the location sample on nrf9151dk from v3.0.0 of nrf-sdk. Hardware details:

PCA10171
0.9.0
2024.37
1051221332

I have these additional configs added to my prj.conf

CONFIG_NRF_CLOUD_REST_LOG_LEVEL_DBG=y
CONFIG_REST_CLIENT_LOG_LEVEL_DBG=y
CONFIG_LOG_MODE_IMMEDIATE=y

This is the output I'm seeing:

*** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***
*** Using Zephyr OS v4.0.99-dea1d290242a ***
Location sample started

Connecting to LTE...
+CEREG: 2,"75A6","00921979",7
+CSCON: 1
+CEREG: 2,"75A6","00921979",7,0,17
[00:00:28.762,878] <wrn> lte_lc: Registration rejected, EMM cause: 17, Cell ID: 9574777, Tracking area: 30118, LTE mode: 7
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CEREG: 2,"D6E4","086F0A0C",7
+CSCON: 1
+CEREG: 5,"D6E4","086F0A0C",7,,,"00000100","10111110"
Connected to LTE
Waiting for current time
%XTIME: ,"52900332448569","01"
Requesting location with short GNSS timeout to trigger fallback to cellular...
%NCELLMEAS: 0,"086F0A0C","302610","D6E4",16,5145,153,58,14,121593,125245
[00:02:05.891,693] <inf> nrf_cloud_info: Device ID: nrf-359404230135171
[00:02:05.899,169] <inf> nrf_cloud_info: IMEI:      359404230135171
[00:02:06.012,268] <inf> nrf_cloud_info: UUID:      50343956-3037-44e2-8092-17082777dd75
[00:02:06.021,148] <inf> nrf_cloud_info: Modem FW:  mfw_nrf91x1_2.0.2
[00:02:06.028,015] <inf> nrf_cloud_info: Protocol:          REST
[00:02:06.034,454] <inf> nrf_cloud_info: Download protocol: HTTPS
[00:02:06.041,015] <inf> nrf_cloud_info: Sec tag:           16842753
[00:02:06.047,821] <inf> nrf_cloud_info: Host name:         api.nrfcloud.com
[00:02:06.059,265] <dbg> nrf_cloud_rest: nrf_cloud_rest_agnss_data_get: URL: api.nrfcloud.com/v1/location/agnss
[00:02:06.069,824] <dbg> nrf_cloud_rest: nrf_cloud_rest_agnss_data_get: Body: {"mcc":302,"mnc":610,"tac":55012,"eci":141494796,"rsrp":-83,"types":[1,2,3,9,12,11,13,4,5,6,7,8]}
[00:02:06.086,059] <dbg> rest_client: rest_client_request: Requesting destination HOST: api.nrfcloud.com at port 443, URL: /v1/location/agnss
[00:02:06.099,212] <dbg> rest_client: rest_client_request: Payload: {"mcc":302,"mnc":610,"tac":55012,"eci":141494796,"rsrp":-83,"types":[1,2,3,9,12,11,13,4,5,6,7,8]}
[00:02:06.114,532] <dbg> rest_client: rest_client_sckt_connect: Doing getaddrinfo() with connect addr api.nrfcloud.com port 443
[00:02:06.349,487] <dbg> rest_client: rest_client_sckt_connect: getaddrinfo() 52.5.44.30
[00:02:06.358,459] <dbg> rest_client: rest_client_sckt_connect: Connecting to api.nrfcloud.com port 443
[00:02:09.233,947] <dbg> rest_client: rest_client_http_response_cb: HTTP: All data received (content/total: 1700/1956), status: 206 Partial Content
[00:02:09.247,650] <dbg> rest_client: rest_client_request: API call response len: http status: 206, 1700 bytes
[00:02:09.258,117] <dbg> rest_client: rest_client_close_connection: Socket with id: 0 was kept alive and wasn't closed
[00:02:09.269,348] <dbg> nrf_cloud_rest: nrf_cloud_rest_agnss_data_get: Total bytes in payload: 3609
[00:02:09.278,900] <err> nrf_cloud_rest: Result buffer too small for 3609 bytes of A-GNSS data
[00:02:09.290,405] <err> location: nRF Cloud A-GNSS request failed, error: -105
[00:02:10.305,419] <inf> location: Method specific timeout expired
[00:02:10.312,408] <inf> location: Location retrieval failed using 'GNSS', trying with 'Cellular' next
%NCELLMEAS: 0,"086F0A0C","302610","D6E4",16,5145,153,57,11,129701,129165
%NCELLMEAS: 0,"086F0A0C","302610","D6E4",16,129165,5145,153,57,11,129701,1,0
%NCELLMEAS: 0,"086F0A0C","302610","D6E4",16,129165,5145,153,57,11,129701,1,0
[00:02:10.437,377] <dbg> rest_client: rest_client_request: Requesting destination HOST: api.nrfcloud.com at port 443, URL: /v1/location/ground-fix
[00:02:10.450,988] <dbg> rest_client: rest_client_request: Payload: {"lte":[{"eci":141494796,"mcc":302,"mnc":610,"tac":55012,"earfcn":5145,"rsrp":-84,"rsrq":-14.5,"adv":16}]}
[00:02:10.467,071] <dbg> rest_client: rest_client_sckt_connect: Doing getaddrinfo() with connect addr api.nrfcloud.com port 443
[00:02:10.479,400] <dbg> rest_client: rest_client_sckt_connect: getaddrinfo() 52.5.44.30
[00:02:10.488,342] <dbg> rest_client: rest_client_sckt_connect: Connecting to api.nrfcloud.com port 443
[00:02:11.906,433] <dbg> rest_client: rest_client_http_response_cb: HTTP: All data received (content/total: 81/280), status: 200 OK
[00:02:11.918,701] <dbg> rest_client: rest_client_request: API call response len: http status: 200, 81 bytes
[00:02:11.930,541] <dbg> rest_client: rest_client_close_connection: Socket with id: 0 was closed

I can run the same sample on a nRF9160dk without any errors

Related