Day 16: Pagination Error

My question:
Hi All,
I am getting the below error on the Day 16: Pagination of Postman 30 days Challenge.
Not sure what i am doing wrong. Can someone please guide.
Thanks in advance.

Details (like screenshots):

How I found the problem:
I am getting this error when i try to submit the solution .

I’ve already tried:
I have set “Page” as collection level variable and below is my Pre-Requiste code

Don’t think there is an issue with your code. Can you try parseInt ? (no specific reason, just an alternative way)

Maybe there is some space in collection variable page. For me, your code ran properly.

Thanks @sahuvikramp for checking at your end. :slightly_smiling_face:

I did tried parseInt() but it still is not working…
I think this test is failing due to some other reason. My script is not mayb traversing well the pages .

This is the test which is failing.

I think the issue is here, the url is not picking the complete value meaning the ‘page’ variable.

Hey @gurparv, I think you are missing confused between pm.sendRequest and postman.setNextRequest :sweat_smile:

please read the documentation again, point number 3. You are very close to your solution.

Cheers :clap:

I’ve just stucked on same error as you. I was able to solve it after 5 hours :smiley: You need to read description of submit request as well :smiley:

1 Like