Q&A Session for Google Summer of Code 2023 on Thursday, March 30, 12pm UTC

:mega: Join the Open Source Program Office together with AsyncAPI, Collection Format and OpenAPI in this zoom session to learn how to find an API project for Google Summer of Code (GSoC) and still apply before the deadline on April 4.
:spiral_calendar:This Thursday
8am EDT
12pm UTC
1pm WAT
2pm CET
5:30pm IST
https://go.pstmn.io/gsoc-qa

Hey jan, i have an error while submitting Introduction to HTTP APIs in Postman
This is auth mention in the course for whole collection…


The request in proper in postman

Query params is getting attached properly here through collection auth →

But after generating collection API using share… i am getting this results
JSON →

{
  "collection": {
    "info": {
      "_postman_id": "7e20432f-f45e-4d5d-8f16-589435bbbba6",
      "name": "Intro to HTTP APIs Module",
      "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
      "updatedAt": "2023-03-29T15:29:07.000Z"
    },
    "item": [
      {
        "name": "Picture of the Day",
        "event": [
          {
            "listen": "test",
            "script": {
              "id": "37c227b2-2eba-4fd3-9b15-e3902a0091c8",
              "exec": [
                "pm.test(\"Status code is 200\", function () {\r",
                "    pm.response.to.have.status(200)\r",
                "})\r",
                "console.log(pm.request)"
              ],
              "type": "text/javascript"
            }
          }
        ],
        "id": "def42378-9c5e-4002-8677-7ff9049199ae",
        "protocolProfileBehavior": {
          "disableBodyPruning": true
        },
        "request": {
          "method": "GET",
          "header": [
            
          ],
          "url": {
            "raw": "https://api.nasa.gov/planetary/apod",
            "protocol": "https",
            "host": [
              "api",
              "nasa",
              "gov"
            ],
            "path": [
              "planetary",
              "apod"
            ]
          }
        },
        "response": [
          
        ]
      },
      {
        "name": "Pictures from November 2022",
        "event": [
          {
            "listen": "test",
            "script": {
              "id": "30086e03-9ffc-475a-bd87-e289024df102",
              "exec": [
                "const length = pm.response.json().length\r",
                "console.log(`From the Tests tab, number of pictures is: ${length}`)\r",
                "pm.test(\"Status code is 200\", function () {\r",
                "  pm.response.to.have.status(200)\r",
                "})\r",
                "const response = pm.response.json()[2].url\r",
                "pm.collectionVariables.set(\"nasa_image_url\", response)"
              ],
              "type": "text/javascript"
            }
          }
        ],
        "id": "8c4974be-0846-497b-89fb-e1fd6d450e4d",
        "protocolProfileBehavior": {
          "disableBodyPruning": true
        },
        "request": {
          "method": "GET",
          "header": [
            
          ],
          "url": {
            "raw": "https://api.nasa.gov/planetary/apod?start_date=2022-11-01&end_date=2022-11-30",
            "protocol": "https",
            "host": [
              "api",
              "nasa",
              "gov"
            ],
            "path": [
              "planetary",
              "apod"
            ],
            "query": [
              {
                "key": "start_date",
                "value": "2022-11-01"
              },
              {
                "key": "end_date",
                "value": "2022-11-30"
              }
            ]
          }
        },
        "response": [
          
        ]
      },
      {
        "name": "Retrieve image",
        "id": "d182fc19-ea79-43f8-a5d6-49a9fbd4e7ec",
        "protocolProfileBehavior": {
          "disableBodyPruning": true
        },
        "request": {
          "method": "GET",
          "header": [
            
          ],
          "url": {
            "raw": "{{nasa_image_url}}",
            "host": [
              "{{nasa_image_url}}"
            ]
          }
        },
        "response": [
          
        ]
      }
    ],
    "auth": {
      "type": "apikey",
      "apikey": [
        {
          "key": "value",
          "value": "{{nasa_api_key}}",
          "type": "string"
        },
        {
          "key": "key",
          "value": "api_key",
          "type": "string"
        },
        {
          "key": "in",
          "value": "query",
          "type": "string"
        }
      ]
    },
    "event": [
      {
        "listen": "prerequest",
        "script": {
          "id": "7cd9ca65-2fbb-445b-992d-2c02cf62618f",
          "type": "text/javascript",
          "exec": [
            "// const value = \"aman\"",
            "// pm.collectionVariables.set(\"variable_key\", value);",
            "// pm.collectionVariables.get(\"variable_key\");"
          ]
        }
      },
      {
        "listen": "test",
        "script": {
          "id": "0f1d4726-f8c3-4261-8dd7-f1036035e195",
          "type": "text/javascript",
          "exec": [
            "pm.test(\"Status code is 200\", function () {",
            "    pm.response.to.have.status(200);",
            "});"
          ]
        }
      }
    ],
    "variable": [
      {
        "id": "90a9669c-bbdc-4740-a4cb-daef7039e714",
        "key": "nasa_api_key",
        "value": "DEMO_KEY"
      },
      {
        "id": "ad660af4-a10e-4512-9ffb-24eeb19f3f32",
        "key": "new_variable",
        "value": "NEW_KEY",
        "type": "string"
      },
      {
        "id": "fb350dc4-57e1-4fa8-924d-193fc12e7f24",
        "key": "nasa_image_url",
        "value": "https://apod.nasa.gov/apod/image/2211/Lobster_Blanco_960.jpg"
      }
    ]
  }
}

Here response is missing and i got this error on submitting this collection API
image

Could you please help how to resolve the following Error!