In which task and step of the codelab can this issue be found?
Step 2
Describe the problem
For the test to pass in the final step (7) the json file needs to be updated to use the following or else the test will show a JsonDataException error.
error message
Required value 'type' missing at $[1]
com.squareup.moshi.JsonDataException: Required value 'type' missing at $[1]
(Coroutine boundary)
at com.example.android.marsrealestate.MarsApiServiceTests$api_service$1.invokeSuspend(MarsApiServiceTests.kt:42)
Steps to reproduce?
Go to...
This repository does not include the test solution for you to check the code.
Click on...
See error...
VersionsAndroid Studio version:API version of the emulator:
Additional informationInclude screenshots if they would be useful in clarifying the problem.
name: Android Basics Unit 4 issue about: Report problems with the Android Basics Unit 4 codelabs title: 'Android Basics Unit 4 issue:' labels: '' assignees: ''
URL of codelab https://developer.android.com/codelabs/android-basics-kotlin-test-network-request?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-4-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fandroid-basics-kotlin-test-network-request#1
In which task and step of the codelab can this issue be found? Step 2
Describe the problem For the test to pass in the final step (7) the json file needs to be updated to use the following or else the test will show a JsonDataException error.
[ [{ "price": 450000, "id": "424905", "type": "buy", "img_src": "http://mars.jpl.nasa.gov/msl-raw-images/msss/01000/mcam/1000MR0044631300503690E01_DXXX.jpg" }, { "price": 8000000, "id": "424906", "type": "rent", "img_src": "http://mars.jpl.nasa.gov/msl-raw-images/msss/01000/mcam/1000ML0044631300305227E03_DXXX.jpg" }, { "price": 11000000, "id": "424907", "type": "rent", "img_src": "http://mars.jpl.nasa.gov/msl-raw-images/msss/01000/mcam/1000MR0044631290503689E01_DXXX.jpg" }] ]
error message Required value 'type' missing at $[1] com.squareup.moshi.JsonDataException: Required value 'type' missing at $[1] (Coroutine boundary) at com.example.android.marsrealestate.MarsApiServiceTests$api_service$1.invokeSuspend(MarsApiServiceTests.kt:42)
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.