# Error Assignment#5 TypeError

**URL:** <https://community.postman.com/t/error-assignment-5-typeerror/70916>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 6, 2024, 10:05pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916 "2024-11-06T22:05:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![flight-candidate-665](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@flight-candidate-665](https://community.postman.com/u/flight-candidate-665)\
**Post date:** [November 6, 2024, 10:05pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/1 "2024-11-06T22:05:51Z")

</div>

Hi there, i am getting an TypeError, from the postman console and not from the github repo, is that has something to do with my script or general structure of the code. Any suggestions thx.

 ![Screenshot 2024-11-07 000158](https://us1.discourse-cdn.com/getpostman/original/3X/4/d/4d00ba4a9320df3248fd792b52e585ab5343f7a3.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 6, 2024, 10:29pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/2 "2024-11-06T22:29:05Z")

</div>

Hey 👋🏻

Is the `url` variable resolved correctly? As it’s returning a 404 it could be down to that.

---

<div class="post-metadata">

**Author:** ![flight-candidate-665](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@flight-candidate-665](https://community.postman.com/u/flight-candidate-665)\
**Post date:** [November 6, 2024, 10:34pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/3 "2024-11-06T22:34:10Z")

</div>

i guess not sure

> <https://github.com/Fdcinc/My-API-projects/blob/main/.github/workflows/postman.yml>

i am on the correct page, also is the api-key the same as in secrets and variables for github

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 6, 2024, 11:06pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/4 "2024-11-06T23:06:57Z")

</div>

The line above the error in the console, should show where the async request is going and if the URL is correct.

---

<div class="post-metadata">

**Author:** ![flight-candidate-665](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@flight-candidate-665](https://community.postman.com/u/flight-candidate-665)\
**Post date:** [November 6, 2024, 11:30pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/5 "2024-11-06T23:30:21Z")

</div>

The first url looks healthy (201) then breaks into / other paths giving me a 404

 ![Screenshot 2024-11-07 012652](https://us1.discourse-cdn.com/getpostman/original/3X/d/6/d6d01a5160f56bcfe76f9a81bb22e5089c21b8e4.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 7, 2024, 8:56am UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/6 "2024-11-07T08:56:56Z")

</div>

It looks like the route is being appended twice in the async request which is causing a 404.

Can you share a link to your Public Workspace, please?

As an example, my solution looks like this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/7/47fa1ef4d2df037a2ba913c1654e69e6821e5cb5.jpeg)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 7, 2024, 12:25pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/7 "2024-11-07T12:25:07Z")

</div>

Can you check that you haven’t also added the full URL to the `{{githubProdjectUrl}}` variable? Which I think you have by looking at the console output:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/0/c0daf47b62e4d2e63cf5af49a3af98eeee54468d.png)

That would be the only thing that would cause it to double the path in the URL.

It should only look like this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/c/6cc68b7a975740803262836bb29f4a90445c7756.png)

As per the documentation:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/3/b334df8c4fa88887ede452508b158b0502ce9b19.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 7, 2024, 12:25pm UTC](https://community.postman.com/t/error-assignment-5-typeerror/70916/8 "2024-12-07T12:25:16Z")

</div>

Closed on December 7, 2024, 12:25pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
