Я создал и развернул проект abp.io в Azure. Я успешно создал БД и веб-приложение.
Теперь я изучаю мобильный интерфейс React. Я пытаюсь указать приложение React на локальном хосте или на сервере Azure.
Я установил переменные среды apiUrl и эмитент для своего IP-адреса и моего веб-сайта Azure на основе документации (https://docs.abp.io/en/abp/latest/Getting-Started-React-Native) и получите ту же ошибку, которая показана ниже.
Ошибка локального хоста:
Network Error
The above error occurred in task fetchAppConfig
created by takeLatest(app/fetchAppConfigAsync, fetchAppConfig)
created by _callee
created by rootSaga
Tasks cancelled due to error:
takeLatest(app/fetchAppConfigAsync, fetchAppConfig)
takeLatest(app/setLanguageAsync, setLanguage)
takeLatest(app/logoutAsync, logout)
Ошибка Azure:
Request failed with status code 500
- node_modules\axios\lib\core\createError.js:15:17 in createError
- node_modules\axios\lib\core\settle.js:16:9 in settle
- node_modules\axios\lib\adapters\xhr.js:53:6 in handleLoad
- node_modules\event-target-shim\dist\event-target-shim.js:818:20 in EventTarget.prototype.dispatchEvent
- node_modules\react-native\Libraries\Network\XMLHttpRequest.js:592:4 in setReadyState
- node_modules\react-native\Libraries\Network\XMLHttpRequest.js:395:6 in __didCompleteResponse
- node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:189:10 in emit
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:416:4 in __callFunction
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:109:6 in __guard$argument_0
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:108:4 in callFunctionReturnFlushedQueue
* [native code]:null in callFunctionReturnFlushedQueue
The above error occurred in task fetchAppConfig
created by takeLatest(app/fetchAppConfigAsync, fetchAppConfig)
created by _callee
created by rootSaga
Tasks cancelled due to error:
takeLatest(app/fetchAppConfigAsync, fetchAppConfig)
takeLatest(app/setLanguageAsync, setLanguage)
takeLatest(app/logoutAsync, logout)
Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`
.
.
.
* [native code]:null in callFunctionReturnFlushedQueue