weatherDataService Error when I call "getCurrnetWeather" using Weatherkit

I have a problem with Weatherkit and recive data error with

2022-12-04 11:22:05.564713+0900 weatherProject[13140:412146] [WeatherDataService] Response did not contain requested dataset: .appLocationConfig. Returning default value: AppLocationConfig(reportAnIssue: ReportIssueLocationConfig(position: beforeFooter, minDaysSinceInteraction: 0), expireTime: 2022-12-04 02:52:05 +0000

func getCurrnetWeather(CLlocation: CLLocation, completion: @escaping () -> Void){
        Task {
            do {
                let result = try await weatherService.weather(for: CLlocation)
                weather? = result
            } catch {
                print(error)
            }
        }
    }

How Can I solve this problem? I Checked my account identifier. But still have problem...

Post not yet marked as solved Up vote post of Jinyoung-Jang Down vote post of Jinyoung-Jang
1.4k views

Replies

check if your CLLocation is nil when you are calling weatherService.weather()

  • CLLocation is not nil, but still got this error..

Add a Comment

I am getting the same response and location is not nil in my case I have double checked it. Does anyone has solution for this?

I am having this same issue. Followed the Documentation of Apple completely. I even created a new Identifier for my WeatherKit but it's still not working. And yes, Weatherkit in App Services also checked.

My CLLocation is also not nil.

My guess is that this issue is not on our side. Hope this issue could get solved soon

I'm getting the same result in the Console, but I do receive the WK data. Unsure how to change this.

I'm getting the same error in the console, but like jaaabeee, I'm receiving the data.