Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: After upgrading from v1.3.4 to v1.3.5, on refresh, I get 404 not found on the console. #5623

Closed
2 tasks done
usamashafiqs opened this issue Jun 1, 2023 · 12 comments
Labels
bug Something isn't working
Milestone

Comments

@usamashafiqs
Copy link

👟 Reproduction steps

I get 404 not found on the console when I refresh the page.

{
  "message": "Not Found",
  "code": 404,
  "type": "general_route_not_found",
  "version": "1.3.5"
}

👍 Expected behavior

The console should work fine after refreshing the page.

👎 Actual Behavior

It actually showed 404 not found after refreshing the page.

🎲 Appwrite version

Version 1.3.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@usamashafiqs usamashafiqs added the bug Something isn't working label Jun 1, 2023
@byawitz
Copy link
Member

byawitz commented Jun 1, 2023

Upvote+
When accessing the console in the base URL https://slef-hosted.appwrite/console then the SPA navigation works perfectly.
But when trying to access any deep spa URL console like this for example
https://slef-hosted.appwrite/console/organization-63e048deb2d5ae084a90
I get the 404 error.

From what I see the error could be here
utopia-php/http@e8e12a8
As this check can't be true in the console.

if (\substr_count($routeUrl, '/') !== \substr_count($url, '/')) {
                continue;
            }

But when loading the console path at start then navigation go to the JS and it works until page refresh.

P.s. Here are values for example:

<?php

$url = 'https://cloud.appwrite.io/console/organization-someId';
$routeUrl = 'https://cloud.appwrite.io/console';

var_dump(substr_count($routeUrl, '/')); // 3

var_dump(substr_count($url, '/')); // 4

@wilhantian
Copy link

点赞+ 在在基本中访问控制台时https://slef-hosted.appwrite/console,spa导航导航可以运行。 但是但是但是当尝试尝试访问访问任何任何console这样这样这样的的的的深层的深层深层深层深层深层深层深层 https://slef-hosted.appwrite/console/organization-63e048deb2d5ae084a90 深层的的

据我所知,错误可能在这里 utopia-php/framework@ e8e12a8 因为这个检查不能true在控制台中。

if (\substr_count($routeUrl, '/') !== \substr_count($url, '/')) {
                continue;
            }

但是当开始时加载console路径自然后导航到 JS 并且它一直有效直接到页面刷新。

Ps 以下是值得说明的例子:

<?php

$url = 'https://cloud.appwrite.io/console/organization-someId';
$routeUrl = 'https://cloud.appwrite.io/console';

var_dump(substr_count($routeUrl, '/')); // 3

var_dump(substr_count($url, '/')); // 4

You're right. When applying for an SSL certificate, there is the same issue here

@joeyouss
Copy link

joeyouss commented Jun 2, 2023

The fix will be done today, thanks for opening this!

@stnguyen90 stnguyen90 mentioned this issue Jun 2, 2023
2 tasks
@stnguyen90 stnguyen90 added this to the 1.3.6 milestone Jun 2, 2023
@rohankm
Copy link

rohankm commented Jun 2, 2023

even im facing the same issue while using the oauth

@byawitz
Copy link
Member

byawitz commented Jun 2, 2023

even im facing the same issue while using the oauth

It was fixed in version 1.3.6 https://github.com/appwrite/appwrite/releases/tag/1.3.6
Upgrade to version 1.3.6

@rohankm
Copy link

rohankm commented Jun 2, 2023

even im facing the same issue while using the oauth

It was fixed in version 1.3.6 https://github.com/appwrite/appwrite/releases/tag/1.3.6 Upgrade to version 1.3.6

even after upgrading, I'm getting the same 404 error for deeplink

@shatanikmahanty
Copy link

How to use the fixed version for flutter SDK?

@byawitz
Copy link
Member

byawitz commented Jun 2, 2023

How to use the fixed version for flutter SDK?

The fix is for the Appwrite server part. the flutter SDK stayed the same.

@shatanikmahanty
Copy link

shatanikmahanty commented Jun 2, 2023

How to use the fixed version for flutter SDK?

The fix is for the Appwrite server part. the flutter SDK stayed the same.

I am getting the same error in flutter client side while using appwrite cloud.

Only thing different for me is the version 0.10.26

@byawitz
Copy link
Member

byawitz commented Jun 2, 2023

The real version on the cloud is 1.1.2 and I think they're going to be another quick fix that will fix that.

@shatanikmahanty
Copy link

The real version on the cloud is 1.1.2 and I think they're going to be another quick fix that will fix that.

Alright. Thanks for the update.

@Haimantika
Copy link
Contributor

Hi @usamashafiqs are you still facing this issue? We had a fix rolled out recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants