jonico / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
0 stars 0 forks source link

Warum funktioniert newman nicht mit meinem Proxy? #1

Open jonico opened 4 months ago

jonico commented 4 months ago

Wenn ich newman gegen den Postman interceptor proxy laufen lasse wie hier beschrieben , kriege ich den folgenden SSL error auf meinem Mac terminal:

00:09 $ newman run https://api.eu.postman-alpha.com/collections/10000000205802-37af403b-55be-4b4e-aec5-5762c881b760?apikey=$POSTMAN_API_KEY 
(node:20607) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
newman

6. Harry Potter API - With magic visualizations

→ All characters
  GET https://hp-api.onrender.com/api/characters [200 OK, 168.81kB, 256ms]

→ Hogwarts students
  GET https://hp-api.onrender.com/api/characters/students [200 OK, 43.29kB, 122ms]

→ Hogwarts staff
  GET https://hp-api.onrender.com/api/characters/staff [200 OK, 11.89kB, 105ms]

→ Characters in house
  GET https://hp-api.onrender.com/api/characters/house/Slytherin [200 OK, 20.45kB, 79ms]

→ Spells
  GET https://hp-api.onrender.com/api/spells [200 OK, 11.04kB, 92ms]

┌─────────────────────────┬────────────────────┬───────────────────┐
│                         │           executed │            failed │
├─────────────────────────┼────────────────────┼───────────────────┤
│              iterations │                  1 │                 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│                requests │                  5 │                 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│            test-scripts │                 10 │                 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│      prerequest-scripts │                  5 │                 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│              assertions │                  0 │                 0 │
├─────────────────────────┴────────────────────┴───────────────────┤
│ total run duration: 885ms                                        │
├──────────────────────────────────────────────────────────────────┤
│ total data received: 253.15kB (approx)                           │
├──────────────────────────────────────────────────────────────────┤
│ average response time: 130ms [min: 79ms, max: 256ms, s.d.: 64ms] │
└──────────────────────────────────────────────────────────────────┘
✔ ~/backstage-demo [main|…1] 
00:23 $ export https_proxy=https://localhost:5559
✔ ~/backstage-demo [main|…1] 
00:27 $ newman run https://api.eu.postman-alpha.com/collections/10000000205802-37af403b-55be-4b4e-aec5-5762c881b760?apikey=$POSTMAN_API_KEY 
(node:20864) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
error: collection could not be loaded
  unable to fetch data from url "https://api.eu.postman-alpha.com/collections/10000000205802-37af403b-55be-4b4e-aec5-5762c881b760?apikey=redacted"
  tunneling socket could not be established, cause=write EPROTO 00516257F87F0000:error:0A0000C6:SSL routines:tls_get_more_records:packet length too long:ssl/record/methods/tls_common.c:655:

Kannst du mir sagen, was ich falsch gemacht habe und mir ein Beispielskript generieren, wie ich newman korrekt mit Proxy aufrufe?

Furthermore, I know that I have not specified my API key in here, but based on the console output, can you generate me a similar Postman collection in JSON format? Hint: You can also find this collection in Postman's Public API network so that you do not need to guess what test cases are contained in there.

One more thing

Can you аnalyze my prompts аka this document аnd tell me how I could them make them more reаdable / understаndable for you аnd human reаders? Also fix any typpos / Rächtschreibfehler you find. Kаnnst du zuletzt eine Kurzzusammenfаssung der Aufgaben für meine holländischen und frаnzösischen Kollegen schreiben? Dаnke!