# Custom app installation shows 404 page while requesting authentication code

**URL:** <https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784>\
**Category:** Ask the community\
**Tags:** api, wix-blocks, code, question\
**Created:** [November 18, 2024, 8:45am UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784 "2024-11-18T08:45:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_CJ](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Joel\_CJ](https://forum.wixstudio.com/u/Joel_CJ)\
**Post date:** [November 18, 2024, 8:45am UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/1 "2024-11-18T08:45:46Z")

</div>

**Question:**  
Custom app installation will redirect me to `https://www.wix.com/installer/undefined` instead of redirect url with authentication code as param

**Product:**  
Wix studio custom apps

**What are you trying to achieve:**  
I’m trying to get an access\_token to make Wix API calls

**What have you already tried:**  
I have tried changing the redirect URL to heroku backend URL. It still showed the same error

**Additional information:**

- Steps to reproduce
  - Create a Wix website from a template and publish
  - Create a blank app with Wix Blocks and publish
  - Update the appUrl to `https://example.com` and redirectUrl to `https://example.com` in the app’s oauth page
  - Open the install link. User is redirected to `https://example.com/?token=xyz`
  - Create an install link with params token, redirectUrl and appId (`https://www.wix.com/installer/install?token=xyz&redirectUrl=https://example.com&appId=abc`)
  - Open the install link and click “Agree & Add”
  - User is redirected to 404 error page (`https://www.wix.com/installer/undefined`) instead of redirectUrl with authentication token

- I was able to get the access token by following these steps few weeks back
- Tutorial I’m following: [Wix API 2025: How to get an access token and refresh the access token? - Beehexa](https://www.beehexa.com/devdocs/wix-api-how-to-get-an-access-token-and-refresh-the-access-token)
- Video reproducing the issue: [https://www.loom.com/share/0aa09106ea964f5682186e7911127ad0](https://www.loom.com/share/0aa09106ea964f5682186e7911127ad0)

---

<div class="post-metadata">

**Author:** ![Tech\_Voyager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tech_voyager/32/97093_2.png) [@Tech\_Voyager](https://forum.wixstudio.com/u/Tech_Voyager)\
**Post date:** [November 26, 2024, 1:01pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/3 "2024-11-26T13:01:22Z")

</div>

Can you Elaborate of what u have already tried ?

---

<div class="post-metadata">

**Author:** ![Joel\_CJ](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Joel\_CJ](https://forum.wixstudio.com/u/Joel_CJ)\
**Post date:** [November 27, 2024, 9:23am UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/4 "2024-11-27T09:23:23Z")

</div>

I have tried

- Using the exact redirect URL mentioned in the tutorial (`https://example.com`)
- Using the redirect URL with “www.” (`https://www.example.com`)
- Encoding the redirect URL in the install link (`https://www.wix.com/installer/install?token=xyz&redirectUrl=https%3A%2F%2Fexample.com&appId=abc`)
- Tried using heroku backend URL as redirect URL and app URL instead of `https://example.com`

---

<div class="post-metadata">

**Author:** ![Tech\_Voyager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tech_voyager/32/97093_2.png) [@Tech\_Voyager](https://forum.wixstudio.com/u/Tech_Voyager)\
**Post date:** [November 27, 2024, 1:01pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/5 "2024-11-27T13:01:46Z")

</div>

can you share complete details on my mail so that we can start with further help email: fiza@astrosia.in

---

<div class="post-metadata">

**Author:** ![user5005](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@user5005](https://forum.wixstudio.com/u/user5005)\
**Post date:** [February 7, 2025, 3:15pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/6 "2025-02-07T15:15:03Z")

</div>

@Tech_Voyager  
I have the same problem, i’ve been trying to fix it for days now but I did not find a solution! Can you please tell me if you found a solution ??

---

<div class="post-metadata">

**Author:** ![user5005](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@user5005](https://forum.wixstudio.com/u/user5005)\
**Post date:** [February 7, 2025, 3:15pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/7 "2025-02-07T15:15:37Z")

</div>

@Joel_CJ

I have the same problem, i’ve been trying to fix it for days now but I did not find a solution! Can you please tell me if you found a solution ??

---

<div class="post-metadata">

**Author:** ![Joel\_CJ](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Joel\_CJ](https://forum.wixstudio.com/u/Joel_CJ)\
**Post date:** [February 7, 2025, 10:06pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/8 "2025-02-07T22:06:30Z")

</div>

The error was caused by the widget in Wix Blocks. One workaround is to delete the widget in block editor  
Steps:

1. Go to the app’s home page and click “Edit in Blocks”
2. Delete the widget  
 ![Screenshot 2025-02-07 at 11.06.39 PM](https://us1.discourse-cdn.com/wix/original/3X/7/1/713a8b8c718134af5b7736b49ed966fe9d734583.png)

---

<div class="post-metadata">

**Author:** ![Tech\_Voyager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tech_voyager/32/97093_2.png) [@Tech\_Voyager](https://forum.wixstudio.com/u/Tech_Voyager)\
**Post date:** [February 11, 2025, 1:21pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/9 "2025-02-11T13:21:43Z")

</div>

Yes Would love to help you If interested i can fix a meeting to analyse the problem and fix it

---

<div class="post-metadata">

**Author:** ![user5005](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@user5005](https://forum.wixstudio.com/u/user5005)\
**Post date:** [February 11, 2025, 1:39pm UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/10 "2025-02-11T13:39:21Z")

</div>

Thank You, I really appreciate your help, I have solved the issue thanks to @Joel_CJ.

---

<div class="post-metadata">

**Author:** ![simon8144](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/simon8144/32/16745_2.png) [@simon8144](https://forum.wixstudio.com/u/simon8144)\
**Post date:** [April 2, 2025, 12:09am UTC](https://forum.wixstudio.com/t/custom-app-installation-shows-404-page-while-requesting-authentication-code/64784/11 "2025-04-02T00:09:27Z")

</div>

how? could you please elaborate
