-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Studio 404 not found #244
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@aykonsvk currently CLI shows this warning in production but the development environment works fine you can check this #192 I already have this updated oclif to its latest version which you can check #203 , we haven't merged this yet since some other PR's will break so waiting for now. I am having issue reproducing the bug , I installed the CLI globally and then ran the commands, so my commands look something like this Also can you try running |
I tried it when installed @asyncapi/cli as devDependency locally or globally using the mentioned command above and the result was same. Error and 404. |
As @Souvikns mentioned, we are waiting for PRs to get merged, to make sure, this error resolves in to production release. But for now, @aykonsvk feel free to follow these steps to run locally. $ git clone https://github.com/asyncapi/cli.git
$ cd cli
$ npm install
$ bin/run <command> <flags> <paths if any>
|
@aykonsvk can you update to the latest version and check once, your issue should be fixed now, but if it isn't just let me know. |
After the update there is no error in the console. but I still have 404. Tried new file with
And also opening existing with full path:
|
@aykonsvk I just installed latest CLI
All works well for me. I replicated all your steps and see no issues. I see you are working on sources, can you please make sure you are really using latest? |
I also had this 404 issue - but it seems to only happen when |
@andrew-williams-cko Thank you! That helped. Tried to reproduce the problem even in docker and it is not working when package is not globally installed. |
just to clarify @aykonsvk @andrew-williams-cko do you see a use case to use CLI as a local package? |
Mainly for convinience, as adding an extra step on Getting Started for potential contributors isn't ideal, but then again, it's just one tiny extra step, so not a deal breaker. |
So yeah, this is not yet fixed, we need to investigate what's wrong |
ok folks, so
Maybe you have some ports opened? did you try |
I found if I install with npm globally, |
I tried with the latest CLI, installed in my project as a local dependency with YARN and all is good. I really cannot reproduce it. |
I ran into the same issue with pnpm. Installed it as a dev dependency at both the root level and the package level and encountered a 404 when running studio. |
can you confirm if |
@derberg I doesn't contain it. |
Damn, it is almost completely empty 🤔 at least we know why we get the error, but why the heck deps are not resolved by pnpn... ... looking at docs
Looks like it is normal. That if you installed it also globally, it is the only place where it stays and won't go to local package 🤔 but there is also no symlink so what magic is used to import deps... I have no idea 🤣 We need to figę how we can fallback to global location, or in different words, how to safely resolve "build" path relative to node_modules |
@derberg is there anything we can do to resolve this issue? I can also create a repo that reproduces this issue if that helps? This seems like a pnpm only issue at this point. |
@mkotharicvent I don't think we need to reproduce. We know issue is related to this line -> https://github.com/asyncapi/cli/blob/master/src/models/Studio.ts#L49 and that in case of Easiest but ugliest solution:
Something better from UX point of view:
An approach with better release process might make more sense 🤔 then What do you think? |
I just tried adding the cli (version 0.19.4) as a dev dependency to a yarn 1.22.18 project (no pnpm). I generated a new file with It looks like the dependencies have been installed, though: I then tried to install the cli globally with yarn, but I got the same result. |
@magicmatatjahu @Souvikns @boyney123 Hey folks, what do you think about #244 (comment) and 👇🏼
I think we should give it a try and not depend on dependencies and all these different package managers |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
The issue still exists with version To reproduce:
Installing it globally works. |
Describe the bug
I get this error:
but browser opens up and shows message
404 - The requested path could not be found
How to Reproduce
npm install @asyncapi/cli
./node_modules/.bin/asyncapi start:studio
or./node_modules/.bin/asyncapi new
the guide to create a new file works and I can verify that a new file was created.
macOS Monterey, node - v17.6.0, npm - 8.5.1
Expected behavior
It will open a studio in the browser with the studio.
The text was updated successfully, but these errors were encountered: