Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ExpoAppAuth+;Instagram错误:ExpoAppAuth.Get Auth:JSON反序列化错误_Json_React Native_Expo_Instagram_Appauth - Fatal编程技术网

ExpoAppAuth+;Instagram错误:ExpoAppAuth.Get Auth:JSON反序列化错误

ExpoAppAuth+;Instagram错误:ExpoAppAuth.Get Auth:JSON反序列化错误,json,react-native,expo,instagram,appauth,Json,React Native,Expo,Instagram,Appauth,正在尝试从instagram api接收访问令牌。我正在使用expo应用程序auth并在android上运行。我的用法直接来自演示 当然,我将配置更改为: let config = { issuer: 'https://api.instagram.com/oauth/authorize', scopes: ['user_profile', 'user_media'], clientId: '33562202******' }; 收到了这样的错误: [Unhandled promise rej

正在尝试从instagram api接收访问令牌。我正在使用expo应用程序auth并在android上运行。我的用法直接来自演示

当然,我将配置更改为:

let config = { 
issuer: 'https://api.instagram.com/oauth/authorize',
scopes: ['user_profile', 'user_media'],
clientId: '33562202******'
};
收到了这样的错误:

[Unhandled promise rejection: Error: ExpoAppAuth.Get Auth: JSON deserialization error]
 - node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:99:50 in fn
 - node_modules\@unimodules\react-native-adapter\build\NativeModulesProxy.js:15:41 in moduleName.methodInfo.name
 - ... 9 more stack frames from framework internals
如何处理这种错误,有什么建议吗?我猜instagram返回的数据格式可能与JSON不同,但由于抛出错误,它不知道如何读取这些数据