bitrise-steplib / steps-virtual-device-testing-for-android

MIT License
22 stars 23 forks source link

Error 406 with Virtual Device Testing #6

Closed nicholas-jomo closed 6 years ago

nicholas-jomo commented 6 years ago

It just said "Failed to get http response, status code: [406]", without much explanation. Would you explain how i can resolve this? Thanks

Here's the output from Bitrise log

+------------------------------------------------------------------------------+

| (6) virtual-device-testing-for-android                                       |
+------------------------------------------------------------------------------+
| id: virtual-device-testing-for-android                                       |
| version: 0.9.7                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2017-10-18T13:20:02Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[13:20:02] Start installing (golang) with apt-get       
INFO[13:20:02]  * [OK] Step dependency (go) installed, available. 
Configs:
- ApkPath: /bitrise/deploy/app-staging-debug.apk
- TestTimeout: 900
- DirectoriesToPull: 
- EnvironmentVariables: 
- TestDevices:
---
Model    API Level   Locale     Orientation   
Nexus5   24          portrait   en            
---
- AppPackageID: 
- TestType: instrumentation
- TestApkPath: /bitrise/deploy/app-staging-debug-androidTest.apk
- InstTestPackageID: 
- InstTestRunnerClass: 
- InstTestTargets: 
Upload APKs
=> APKs uploaded
Start test
Failed to get http response, status code: [406]
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | virtual-device-testing-for-android (exit code: 1)             | 4.26 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...se-steplib/steps-virtual-device-testing-for-android/issues |
| Source: ...thub.com/bitrise-steplib/steps-virtual-device-testing-for-android |
+---+---------------------------------------------------------------+----------+

And here's the yml file:

- virtual-device-testing-for-android:
        inputs:
        - test_type: instrumentation
        - test_apk_path: "$STARK_ANDROID_TEST_APK"
        - test_devices: Nexus5,24,en,portrait
nicholas-jomo commented 6 years ago

If i switch to Nexus 6 like - test_devices: Nexus6,24,en,portrait .... this error goes away

does that mean Nexus 5 doesn't support API 24? Maybe a more detail error message helps. Appreciate it by the way!

viktorbenei commented 6 years ago

Hi,

We'll check the available device list again, but as you can see in the input's description it seems there's no Nexus 5 API 24, Nexus 5 is only up to 23 : https://github.com/bitrise-steplib/steps-virtual-device-testing-for-android/blob/master/step.yml#L49

If you want to test with a Nexus 5 I'd suggest you to test with Nexus 5X, which does have API 24 support.

I'll close this issue here, but if you'd have any questions just let us know! :) Happy Building!