Category : postman

The code I wrote is having a single error(that I know of). That error being: line 44, in Match_Address1= store["addressLine1"] KeyError: ‘addressLine1’ The goal of the code is to scrape Mcdonalds website and grab location information and phone number to put into excel. This is so I can track closures and location changes to a ..

Read more

hey im trying to do simple REST operations with postman but with DELETE im getting this error 404 not found Cannot DELETE /posts/60c8e5a860b84f0013a1d9d7 i will be glad for any tips index.js app.use(express.json()); app.use(cors()); app.use("/posts", postRoutes); routes.js const routes = express.Router(); routes.get("/", getPosts); routes.post("/", createPost); routes.patch("/:id", updatePost); router.delete("/:id", deletePost); export default routes; controller.js export const deletePost ..

Read more

I feel kinda dumb asking this question bcs I might be missing something super easy but.. I have a collection of requests in Postman. I have a collection variable test_model_id which is 888. What I’m trying to achieve is simply putting the model_id variable into the string in resp_data line. I feel like I tried ..

Read more

just want to copy a request in developers tools>network as a fetch and create a postman request but I do everything right but fails to send. fetch("https://myurl/dwr/call/plaincall/AjaxManager.getServerTime.dwr", { "headers": { "accept": "*/*", "accept-language": "en-US,en;q=0.9", "content-type": "text/plain", "sec-ch-ua": "" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"", "sec-ch-ua-mobile": "?0", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, "referrer": "https://myurl/mmtpOrder.do?0.48252636885821754", "referrerPolicy": ..

Read more

I am writing a postman test in JavaScript to check if my value contain anything from the array. This is what I got so far pm.test("Check correct name", () => { let expectedName = ["Sarah", "John", "Tim"]; studentNameText = responseJson.student[0].name; const containExpectedName = expectedName.some((s) => studentNameText.include(s)); pm.expect(containExpectedName).to.be.true; }); but I kept getting this error Check ..

Read more