I have been following this Hyperledger Composer tutorial
here and when I try to authenticate to the rest server via http://localhost:3000/auth/github I am not being redirected to the GitHub site to perform the OAuth web server authentication flow. Instead of redirecting, I am getting a 404 error message.
Expected Behavior
According to the Composer tutorial, I would expect being redirected to the Github site to perform the OAuth.
Actual Behavior
When I enter http://localhost:3000/auth/github I am getting a 404 error
My environment:
docker --version
Docker version 17.03.1-ce, build c6d412e
docker-compose --version
docker-compose version 1.13.0, build 1719ceb
node --version
v6.11.0
Adding more details for reference...
[
EDIT:
here is complete error stack trace:
Unhandled error for request GET /explorer/auth/github: Error: Cannot GET /explorer/auth/github
at raiseUrlNotFoundError (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)
at router (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at Immediate. (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15)
Unhandled error for request GET /explorer/auth/github: Error: Cannot GET /explorer/auth/github
at raiseUrlNotFoundError (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)
at router (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at Immediate. (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15)
Unhandled error for request GET /explorer/auth/github: Error: Cannot GET /explorer/auth/github
at raiseUrlNotFoundError (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)
at router (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at Immediate. (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15)
Unhandled error for request GET /explorer/auth/github: Error: Cannot GET /explorer/auth/github
at raiseUrlNotFoundError (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)
at router (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at Immediate. (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15)
Unhandled error for request GET /explorer/auth/github: Error: Cannot GET /explorer/auth/github
at raiseUrlNotFoundError (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15
at next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)
at router (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)
at /home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)
at Immediate. (/home/brankoterzic/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15)
Check if your github account is private. I created a new github account, and it works. Also use the latest command:
composer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -a
true
instead of the -S one
Good luck!
in your COMPOSER_PROVIDERS stanza - specifically the callbackURL setting - you don't need the localhost:3000 - you just need the URL path as "/auth/github/callback" shown in the docs : https://hyperledger.github.io/composer/integrating/enabling-rest-authentication.html . The REST server will take care of..the rest.. . Then stop and restart the composer REST server composer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -S true etc - from the command line where you export the configuration variable COMPOSER_PROVIDERS (above). cheers Paul
Related
I am trying to install the package "react-native-webrtc" but getting this error (yarn install react-native-webrtc --verbose):
react-native-webrtc
verbose 189.970120017 Error: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc: Command failed.
Exit code: 1
Command: node tools/downloadWebRTC.js
Arguments:
Directory: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc
Output:
Downloading https://github.com/jitsi/webrtc/releases/download/v100.0.0/WebRTC.xcframework.tgz...
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 185.199.108.133:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '185.199.108.133',
port: 443
}
at ProcessTermError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:721:66)
at ProcessTermError.MessageError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:750:123)
at new ProcessTermError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:790:113)
at ChildProcess.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:25884:17)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12)
error /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc: Command failed.
Exit code: 1
Command: node tools/downloadWebRTC.js
Arguments:
Directory: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc
Output:
Downloading https://github.com/jitsi/webrtc/releases/download/v100.0.0/WebRTC.xcframework.tgz...
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 185.199.108.133:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
The folder react-native-webrtc exists in node_modules, but when I try to build the app in Xcode, then it throws error like described here.
BTW: I can download the file when opening the url in the browser.
Is there any solution for this issue?
My solution was to download the .tgz file manually (which should be done actually in tools/downloadWebRTC.js) and extracted it to corresponding location. Now the Xcode build works fine.
I got this issue when I tried to read an excel file and I have no clue what caused the issue. Can someone give me a hint?
exceljs version: 2.0.1
TypeError: Cannot read property 'sheets' of undefined
at _callee10$ (/Users/tvi/Documents/BCM projects/sandbox/bulkUpload/node_modules/exceljs/dist/es5/xlsx/xlsx.js:553:43)
at tryCatch (/Users/tvi/Documents/BCM projects/sandbox/bulkUpload/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/Users/tvi/Documents/BCM projects/sandbox/bulkUpload/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (/Users/tvi/Documents/BCM
projects/sandbox/bulkUpload/node_modules/regenerator-runtime/runtime.js:117:21)
at asyncGeneratorStep (/Users/tvi/Documents/BCM projects/sandbox/bulkUpload/node_modules/exceljs/dist/es5/xlsx/xlsx.js:3:103)
at _next (/Users/tvi/Documents/BCM projects/sandbox/bulkUpload/node_modules/exceljs/dist/es5/xlsx/xlsx.js:5:194)
at
Configured with appium and eclipse in mac.
Almost set Android_home and java_home in appium configuration
Set capabilities in selenium
And set driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
Once run selenium shown exception error as:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Command 'java -version' exited with code 2
In appium server shown as:
[W3C] Encountered internal error running command: Error: Command 'java -version' exited with code 2
Here is the code:
DesiredCapabilities capabilities = new DesiredCapabilities();
String apkpath="apk/path";
File app=new File(apkpath);
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("deviceName","G2AXB711Y044HV6");
capabilities.setCapability(CapabilityType.VERSION, "6.0.1");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("appPackage", "com.ABC");
capabilities.setCapability("appActivity", "com.ABC.Activity");
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);`enter code here`
[W3C] at ChildProcess.proc.on.code
(/Applications/Appium.app/Contents/Resources/app/node_modules/teen_process/lib/exec.js:94:19)
[W3C] at ChildProcess.emit (events.js:182:13)
[W3C] at maybeClose (internal/child_process.js:961:16)
[W3C] at Socket.stream.socket.on (internal/child_process.js:380:11)
[W3C] at Socket.emit (events.js:182:13)
[W3C] at Pipe._handle.close [as _onclose] (net.js:596:12)
Please suggest any solution?
I recently started facing this issue.
I upgraded my appium version to 1.6.5 but while running automation when i try to launch app i am getting following error.
[ADB] Error: com.abc.xyz.ui.SplashActivity or com.abc.xyz.dev.com.abc.xyz.ui.SplashActivity never started
at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:63:13)
at ADB.callee$0$0$ (../../../lib/tools/apk-utils.js:153:7)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
Appium couldn't automatically match the activity when your android app been launched.
This can be solved by providing activity and package name you want appium to wait for in capabilities:
E.g
"appWaitActivity" : "com.abc.xyz.ui.SomeActivity",
"appWaitPackage" : "com.abc.xyz"
You can use adb shell dumpsys activity to get current activity of your app
I upgraded to Appium1.5 and now when I launch and try to run my tests I am seeing this error :
Checking my settings and all seems fine and even the inspector works fine .
[AndroidDriver] Error: Unable to find an active device or emulator with OS 1. The following are available: 192.168.99.101:5555 (4.3)
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Object.callee$0$0$ (lib/android-helpers.js:154:16)
at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[Error: Unable to find an active device or emulator with OS 1. The following are available: 192.168.99.101:5555 (4.3)]
[MJSONWP] Encountered internal error running command: Error: Unable to find an active device or emulator with OS 1. The following are available: 192.168.99.101:5555 (4.3)
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Object.callee$0$0$ (lib/android-helpers.js:154:16)
at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
You need to specify the platform version as capability as following -
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "7.1");
My version is 7.1, use the version which is right for you
1.If you want to work with appium version 1.5 again then you can do following things.
Uninstall appium and then install appium for specific version
npm uninstall -g appium
npm install -g appium#1.5
appium -v
2.Now suppose in case if you update appium version then you need to update then all maven dependencies,java,testng etc.
Suppose if you install latest appium then you need to check first your previos xcode,android and all dependencies works for it.
3.If upgrading the version not working then it could be problem with appium version so you have to revert back to your old version which was working fine as 1st option.
craj, may be it is the problem of the adb not of appium.
Had you tried adb devices on cmd?