Post

Replies

Boosts

Views

Activity

Reply to Failed to generate JWT token error WeatherKit
Thanks for the prompt response - I have done as you have suggested, but I don't really understand what the logs are telling me, it's very noisy. I will include some sample error logs here in case they are relevant otherwise can you guide me as to what specifically to be looking for in the logs? code-block default 11:34:23.155379+0000 com.apple.weatherkit.authservice Got JWT token response. requestIdentifier=4B51525F-930D-49EA-A33D-740B4E9B4D15, response=Optional(<NSHTTPURLResponse: 0xcf2390320> { URL: https://weatherkit.apple.com/v3/token } { Status Code: 401, Headers { "Access-Control-Allow-Origin" = ( "*" ); "Content-Length" = ( 0 ); Date = ( "Mon, 13 Jan 2025 11:34:23 GMT" ); Server = ( Apple ); "Strict-Transport-Security" = ( "max-age=31536000; includeSubdomains" ); "content-security-policy" = ( "default-src 'self';" ); "x-apple-origin" = ( "fdcbff05-73b4-3a53-948b-343caa55a40e" ); "x-content-type-options" = ( nosniff ); "x-frame-options" = ( SAMEORIGIN ); "x-request-id" = ( "9f909c55-35c1-b5a9-3aee-015414f74658" ); "x-xss-protection" = ( "1; mode=block" ); } }) error 11:34:23.155430+0000 com.apple.weatherkit.authservice JWT Response not successful. requestIdentifier=4B51525F-930D-49EA-A33D-740B4E9B4D15 error 11:34:23.155690+0000 com.apple.weatherkit.authservice Error while creating local signature. requestIdentifier=4B51525F-930D-49EA-A33D-740B4E9B4D15, error=<mask.hash: 'yc/OgnmKOD6eVUqD8KBuzg=='> error 11:34:23.155869+0000 com.apple.weatherkit.authservice Failed to generate token with error: invalidJWTResponse(Optional(<NSHTTPURLResponse: 0xcf2390320> { URL: https://weatherkit.apple.com/v3/token } { Status Code: 401, Headers { "Access-Control-Allow-Origin" = ( "*" ); "Content-Length" = ( 0 ); Date = ( "Mon, 13 Jan 2025 11:34:23 GMT" ); Server = ( Apple ); "Strict-Transport-Security" = ( "max-age=31536000; includeSubdomains" ); "content-security-policy" = ( "default-src 'self';" ); "x-apple-origin" = ( "fdcbff05-73b4-3a53-948b-343caa55a40e" ); "x-content-type-options" = ( nosniff ); "x-frame-options" = ( SAMEORIGIN ); "x-request-id" = ( "9f909c55-35c1-b5a9-3aee-015414f74658" ); "x-xss-protection" = ( "1; mode=block" ); } })) default 11:34:23.156012+0000 com.apple.weatherkit.authservice Releasing transaction: 15C13CA8-8BC4-4242-874A-17D954DACC7A for: com.apple.weatherkit.token.service error 11:34:23.173398+0000 com.apple.weatherkit.authservice misuse at line 142299 of [1b37c146ee] error 11:34:23.173465+0000 com.apple.weatherkit.authservice API call with unopened database connection pointer default 11:34:23.193429+0000 com.apple.weatherkit.authservice writeDBwithCachedResponse-ERROR: (_dbWriteConnection=0x1044bde70) insert SQL stmnt. is nil for storage: /private/var/mobile/Containers/Data/Application/90D7CCD7-96ED-4C28-BB58-411F6AAD15A2/Library/Caches/com.apple.weatherkit.authservice
1w