question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot post query for upcoming launches

See original GitHub issue

posting data on this url https://api.spacexdata.com/v4/launches/query with data

{
    "query": {
        "upcoming": true
    },
    "options": {
        "limit": 1,
        "select": {
            "name": 1,
            "id": 1,
            "date_local": 1,
            "flight_number": 1,
            "details": 1,
            "links": 1,
            "date_precision": 1
        },
        "sort": {
            "flight_number": "asc"
        },
        "populate": [
            {
                "path": "launchpad",
                "select": {
                    "name": 1,
                    "full_name": 1
                }
            },
            {
                "path": "rocket",
                "select": {
                    "name": 1,
                    "id": 1
                }
            }
        ]
    }
}

Getting response Cannot read property ‘map’ of undefined

it was working few hours before the issue was raised, plz try to solve it fast as possible

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
shibilytcommented, Jul 18, 2021

Interestingly, the old query works fine in the newly added v5.

Instead of https://api.spacexdata.com/v4/launches/query, I used https://api.spacexdata.com/v5/launches/query

I just tested in postman.

0reactions
Fedanniecommented, Jul 18, 2021

@jakewmeyer Please, may you please review your fix once again? I’m getting a launch object inside a crew field. So now sometimes launch.crew is the same object as the launch. It seems to me this happens because of the 11th line in this document: routes/launches/v4/_transform-response.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Express.js : Cannot POST /users error - Stack Overflow
I was trying to test routes out in Postman by creating a user but I kept getting back 'Cannot POST /users'. Can anyone...
Read more >
How To Retrieve URL and POST Parameters with Express
First, open your terminal window and create a new project directory: mkdir express-params-example. … Step 2 – Using req. query with URL ...
Read more >
Tracking vs. No-Tracking Queries - EF Core | Microsoft Learn
Information on tracking and no-tracking queries in Entity Framework Core.
Read more >
Terms of Use - Instagram Help Center
You can't post someone else's private or confidential information without permission or do anything that violates someone else's rights, ...
Read more >
AWS SDK for JavaScript v3
The AWS SDK for JavaScript v3 is a rewrite of v2 with some great new features. As with version 2, it enables you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found