Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Query parameters are missing in Alice - HTTP Call Details page #237

Open
EArminjon opened this issue Sep 6, 2024 · 0 comments
Open
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@EArminjon
Copy link
Contributor

EArminjon commented Sep 6, 2024

Describe the bug
Query parameters are not present when doing HTTP call with for example "https://jsonplaceholder.typicode.com/posts?userId=1" (see code example in next section).

To Reproduce
Steps to reproduce the behavior:

  1. Click on the button
  2. Search in alice the query parameters
  3. See error : no query parameters visible
Code Example
ElevatedButton(
          onPressed: () async {
            final Alice alice = Alice();
            final AliceDioAdapter adapter = AliceDioAdapter();
            alice.addAdapter(adapter);
            final Dio dio = Dio();
            dio.interceptors.add(adapter);
            await dio.get(
              'https://jsonplaceholder.typicode.com/posts?userId=1',
            );
            alice.setNavigatorKey(your_navigator_key);
            alice.showInspector();
          },
          child: const Text('Test'),
        ),

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Capture d’écran 2024-09-06 à 15 29 40
Capture d’écran 2024-09-06 à 15 29 34

Alice details
Alice - HTTP Inspector
App name:  censored
Package: censored
Alice - HTTP Inspector 1.0.0
Build number: 1
Generated: 2024-09-06T15:29:42.688712

===========================================
Id: 5218998
============================================
--------------------------------------------
General data
--------------------------------------------
Server: jsonplaceholder.typicode.com 
Method: GET 
Endpoint: /posts 
Client: Dio 
Duration: 148 ms
Secured connection: true
Completed:: true 
--------------------------------------------
Request
--------------------------------------------
Request time: 2024-09-06 15:28:20.785064
Request content type:: null
Request cookies: []
Request headers: {}
Request size: 0 B
Request body: Body is empty
--------------------------------------------
Response
--------------------------------------------
Response time: 2024-09-06 15:28:20.933017
Response status: 200
Response size: 2.35 kB
Response headers: {
  "x-ratelimit-reset": "[1724097474]",
  "x-ratelimit-limit": "[1000]",
  "date": "[Fri, 06 Sep 2024 13:28:18 GMT]",
  "transfer-encoding": "[chunked]",
  "vary": "[Origin, Accept-Encoding]",
  "content-encoding": "[gzip]",
  "x-ratelimit-remaining": "[999]",
  "pragma": "[no-cache]",
  "server": "[cloudflare]",
  "reporting-endpoints": "[heroku-nel=https://nel.heroku.com/reports?ts=1724097469&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&s=aJCRIhYkqqiqtUuWxGVwcEWUi2UXEPZfG5s8kYZq7Jc%3D]",
  "cf-ray": "[8beecd2dee3f702f-CDG]",
  "etag": "[W/\"aa6-j2NSH739l9uq40OywFMn7Y0C/iY\"]",
  "connection": "[keep-alive]",
  "cache-control": "[max-age=43200]",
  "age": "[10372]",
  "report-to": "[{\"group\":\"heroku-nel\",\"max_age\":3600,\"endpoints\":[{\"url\":\"https://nel.heroku.com/reports?ts=1724097469&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&s=aJCRIhYkqqiqtUuWxGVwcEWUi2UXEPZfG5s8kYZq7Jc%3D\"}]}]",
  "cf-cache-status": "[HIT]",
  "content-type": "[application/json; charset=utf-8]",
  "access-control-allow-credentials": "[true]",
  "x-powered-by": "[Express]",
  "alt-svc": "[h3=\":443\"; ma=86400]",
  "nel": "[{\"report_to\":\"heroku-nel\",\"max_age\":3600,\"success_fraction\":0.005,\"failure_fraction\":0.05,\"response_headers\":[\"Via\"]}]",
  "via": "[1.1 vegur]",
  "x-content-type-options": "[nosniff]",
  "expires": "[-1]"
}
Response body: [
  {
    "userId": 1,
    "id": 1,
    "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
    "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
  },
  {
    "userId": 1,
    "id": 2,
    "title": "qui est esse",
    "body": "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla"
  },
  {
    "userId": 1,
    "id": 3,
    "title": "ea molestias quasi exercitationem repellat qui ipsa sit aut",
    "body": "et iusto sed quo iure\nvoluptatem occaecati omnis eligendi aut ad\nvoluptatem doloribus vel accusantium quis pariatur\nmolestiae porro eius odio et labore et velit aut"
  },
  {
    "userId": 1,
    "id": 4,
    "title": "eum et est occaecati",
    "body": "ullam et saepe reiciendis voluptatem adipisci\nsit amet autem assumenda provident rerum culpa\nquis hic commodi nesciunt rem tenetur doloremque ipsam iure\nquis sunt voluptatem rerum illo velit"
  },
  {
    "userId": 1,
    "id": 5,
    "title": "nesciunt quas odio",
    "body": "repudiandae veniam quaerat sunt sed\nalias aut fugiat sit autem sed est\nvoluptatem omnis possimus esse voluptatibus quis\nest aut tenetur dolor neque"
  },
  {
    "userId": 1,
    "id": 6,
    "title": "dolorem eum magni eos aperiam quia",
    "body": "ut aspernatur corporis harum nihil quis provident sequi\nmollitia nobis aliquid molestiae\nperspiciatis et ea nemo ab reprehenderit accusantium quas\nvoluptate dolores velit et doloremque molestiae"
  },
  {
    "userId": 1,
    "id": 7,
    "title": "magnam facilis autem",
    "body": "dolore placeat quibusdam ea quo vitae\nmagni quis enim qui quis quo nemo aut saepe\nquidem repellat excepturi ut quia\nsunt ut sequi eos ea sed quas"
  },
  {
    "userId": 1,
    "id": 8,
    "title": "dolorem dolore est ipsam",
    "body": "dignissimos aperiam dolorem qui eum\nfacilis quibusdam animi sint suscipit qui sint possimus cum\nquaerat magni maiores excepturi\nipsam ut commodi dolor voluptatum modi aut vitae"
  },
  {
    "userId": 1,
    "id": 9,
    "title": "nesciunt iure omnis dolorem tempora et accusantium",
    "body": "consectetur animi nesciunt iure dolore\nenim quia ad\nveniam autem ut quam aut nobis\net est aut quod aut provident voluptas autem voluptas"
  },
  {
    "userId": 1,
    "id": 10,
    "title": "optio molestias id quia eum",
    "body": "quo et expedita modi cum officia vel magni\ndoloribus qui repudiandae\nvero nisi sit\nquos veniam quod sed accusamus veritatis error"
  }
]
--------------------------------------------
Curl
--------------------------------------------
curl -X GET 'https://jsonplaceholder.typicode.com/posts'
==============================================

Flutter doctor

[✓] Flutter (Channel stable, 3.22.3, on macOS 14.6.1 23G93 darwin-arm64, locale fr-FR)
    • Flutter version 3.22.3 on channel stable at /Users/earminjon/fvm/versions/3.22.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (7 weeks ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/earminjon/Library/Android/Sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/earminjon/Library/Android/Sdk
    • Java binary at: /Users/earminjon/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/earminjon/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] Android Studio (version 2023.2)
    • Android Studio at /Users/perso/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.1)
    • IntelliJ at /Users/earminjon/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 81.1.3
    • Dart plugin version 242.21829.3

[✓] Connected device (5 available)            
    • Pixel 7 (mobile)                • 29291FDH200GC0            • android-arm64  • Android 14 (API 34)

[✓] Network resources
    • All expected network resources are available.

Alice version

  • Version: 1.0.0-dev10

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
@EArminjon EArminjon added the new issue New issue which has not been checked yet label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

2 participants