APP Key和APP ID都正确,但调用测试testobject一直报错,已绑定自己的域名
。。被这个问题困扰了一个月在网上找不到解决方法。求救。。
下面是码,屏蔽掉了app id & key, 和域名,请谅解
[💙][debug][LeanCloud][2022-07-06 16:10:51.430][Application.swift][#368][logInitializationInfo()]:
------ LCApplication Initialization Infomation
Version: 17.10.1
ID: **************
Server URL: https://animalcommunity.***********.cn
Configuration:
customizedServers: []
environment: Environment(rawValue: 0)
HTTPRequestTimeoutInterval: 60.0 seconds
HTTPURLCache: nil
RTMConnectingTimeoutInterval: 60.0 seconds
RTMCommandTimeoutInterval: 30.0 seconds
RTMCustomServerURL: nil
Region: cn
------ END
[💙][debug][LeanCloud][2022-07-06 16:10:51.724][HTTPClient.swift][#410][lcDebugDescription()]:
------ BEGIN LeanCloud HTTP Request
task: 1
curl: curl -v \
-X POST \
-H "X-LC-Id: ******************" \
-H "X-LC-Sign: 4c74452da******************",1******************"51691" \
-H "User-Agent: LeanCloud-Swift-SDK/17.10.1" \
-H "Accept: application/json" \
-H "X-LC-Prod: 1" \
-H "Content-Type: application/json" \
-d "{\"requests\":[{\"method\":\"post\",\"new\":true,\"body\":{\"words\":\"Hello world!\",\"__internalId\":\"******************"\"},\"path\":\"\/1.1\/classes\/TestObject\"}]}" \
"https://animalcommunity.***********.cn/1.1/batch/save"
------ END
[💙][debug][LeanCloud][2022-07-06 16:10:55.629][HTTPClient.swift][#430][lcDebugDescription(request:)]:
------ BEGIN LeanCloud HTTP Response
task: 1
code: 401
error: Response status code was unacceptable: 401.
data: {
"error" : "Unauthorized.",
"code" : 401
}
------ END