[30 days of Postman] Day 19 GraphQL Receiving a 404 error code from URL

Dear All,
I am writing unto you regarding the GraphQL schema used in Day 19.
Last time I ran that test, it was operating appropriately. That could be a URL issue. I believe the schema was properly fetched before sending the request. May you help ?

Day 19 - GraphQL

I am looking forward to seeing from you.
Thank you very much.

1 Like

It looks fine on my end:

If it was returning a 404, you might have had an extra whitespace at the end of the URL?

From my part, that is operating at this point in time.
I generated a job on CircleCI. That is not the outcome
I hope for. However it is enough to apprehend whether
it fails.

Spotify GraphQL

Day19 on CircleCI

Thank you very much.

The Newman command isn’t picking up the reporter that you had used.

Try checking the syntax of the full command is correct.

1 Like

Thank you for your response.

Do you have a Newman commands that fetch the graphQl schema and run the collection ?

I’m not sure what you mean - I was referring to this image that you shared:

This is showing that the reporter " " couldn’t be found so to me that suggests that there is something wrong with your syntax on the newman command that you have used in the pipeline file.

I also don’t really know what you’re trying to do, is that even related to the Day 19 task?

1 Like

Thank you for your response.
There was an extra space whilst I was using the cli and the json reporters. However my issue is not there. I am unable to check the executed requests and the test scripts through the cli reporter. There are both set to 0. An issue with GraphQL ?

Same command used on Day 17

My worry is not related to the reporters

The extra space was removed

May you help ?

Without seeing the static JSON file that you’re running with Newman, I don’t know what should be running.

Have you tried exporting the file again, you may have made change that are not on the file.

Have you tried running this using the Postman API to run the latest synced version?

Have the tried using the Postman CLI and the id of the Collection and running it that way?

Trying to debug this using random screenshots, is very difficult as I can’t see what you are actually running.

1 Like

Thank you for your response.
You may find the collection and the environment files that I used in this message. I will then keep up investigating through the Postman CLI and will let you know.

Environment

Day-19 Collection

Thank you for your feedback.

I set up the Postman CLI on windows. However what I see is not what I get.

May you help ?

I still don’t fully understand why your running that particular collection on the command line.

What are you trying to do? That Collection has tests that you didn’t write and you don’t know the full context.

There will be likely local variables being used in the UI that are not available in the CLI so it wouldn’t be the same.

If you’re just trying to understand how Collections can be run in the CLI, I would recommend creating your own and have tests that you have written.

Thank you for your response.

From my part, there is an issue with the reporters regarding solely that collection. All tests passed therefore all my assertions should pass.

However I see failures. Are there false negatives ?

To sump up, newman was unable to send unto me an appropriate report for that collection. All counters return 0. With the Postman CLI, that looks like false negatives. What is your take ?

I don’t know as I can’t see everything that you have in the files you’re using.

What’s being set at the environment level to have that as part of the command? Why are you using the iteration flag when you’re not using a datafile?

Does the Collection use Collection Variables?

There are too many unknowns and those questions cannot be answered by looking at static screenshots or something that has previously run.

The Collection was never designed to be run like that so there is likely inconsistencies between running it where it should be and extracting that away and using it with the CLI.

Just always comes back to the “I don’t understand why you’re doing that” question.

Thank you for your time.

The collection does not use collection variables. When I tried to get rid off the environment with collection variables , I don’t go through the submission step.

The collection was not designed to work like that, do you mean that I cannot run a collection using a GraphQL schema with the postman CLI or newman?

I automated that challenge through newman and CircleCI. In theory, I shall not have problems with that collection.

Whether it is the postman CLI or newman the reports are confusing. For this command, below it is the output:

With that command, here is the output :

May you help ?

You’re not running a collection in the last image, unless you have changed the collection name to an environment file name.

Why are you run one with the id (the most up to date saved version of the Collection) and one with a static file (A snapshot of the Collection at the point in time that it was exported)?

1 Like

Thak you very much.
From my point of view, there is still an issue with both reporters for that type of collection.

What is the issue? You might need to explain that so we know where you feel something is wrong.

Is the CLI summary table wrong? Is the JSON output from the reporter not showing the same information?

The --verbose flag is not a reporter, it just shows more data from the request, on the terminal output.

What is the expected result from your point of view?

Have you tried creating a different Collection and checking the output of those?

I completed 30 days challenge during the weekend. How do I get my badge? Thanks.