Description
Issue with Source Code Display on GnoDev on Windows
On Windows, I am unable to display the source code, and the system returns the error "Error: package not found." When I open the same URL on Ubuntu using the same browsers, everything works perfectly, whereas on Windows, it does not.
GnoDev Output:
GnoWeb ┃ E response error path=vm/qfile log="&errors.errorString{s:\"package \\\"gno.land\\\\r\\\\gnoland\\\\home\\\\home.gno\\\" is not available\"}"
GnoWeb ┃ E unable to get source file file=home.gno error="package not found"
I tried accessing the same URL via Postman, and in that case, the server returns a 200 OK status instead of the 404 Not Found error I get from the browser. Initially, I suspected an issue with the request headers, so I added them in Postman. However, I don't believe this is the root cause, as Postman continued receiving a 200 OK status even after adding all the headers from the browser.
An interesting observation I made is that when I enter the same URL in Postman (e.g., http://127.0.0.1:8888/r/gnoland/home$source
) but without a whitespace at the end, the server again returns a 404 Not Found error. However, when I add a whitespace at the end of the URL, the server returns a 200 OK status. This suggests that the issue could be related to how the server processes URLs, possibly due to differences in \n
characters between Ubuntu and Windows.
IMAGE WITH WHITESPACE
IMAGE WITHOUT WHITESPACE
Although the URL with a white space works in Postman, I still do not get the expected response. Comparing with the Ubuntu version, when I access the same URL on Ubuntu, two query requests are made to GnoWeb:
GnoWeb ┃ I query path=vm/qfile data=gno.land/r/dragon/home
GnoWeb ┃ I query path=vm/qfile data=gno.land/r/dragon/home/home.gno
However, on Windows, for the same URL, the server makes only one query:
GnoWeb ┃ I query path=vm/qrender data=gno.land/r/gnoland/home:
The response I get in Postman also differs between Windows and Ubuntu. On Ubuntu, the server returns the source code, while on Windows, it only returns the homepage.
RESPONSE IMAGE ON UBUNTU
RESPONSE IMAGE ON WINDOWS
This issue occurs exclusively on GnoDev on Windows. I have checked Portal Loop, test5, and test4, and they all work perfectly, even on Windows, so the problem is specific to GnoDev.
I will continue investigating to find a solution.
Metadata
Assignees
Labels
Type
Projects
Status
Done