-
Notifications
You must be signed in to change notification settings - Fork 259
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: onRequest
returns No such file or directory
#2796
Comments
onRequest
returns No such file or directory
onRequest
returns No such file or directory
I am unable to reproduce the error I copy pasted the graphql config and worker.js and kept it in the same directory. And it works just fine. Can you provide some more context? edit: I think it might be a simple error in the location of files.. |
Thank you for your reply! I just tried cloning the repo and then running and then just running the |
got it.. I think you are running it in different dir like
|
@asimpleidea my assumption seems to be incorrect.. it's still working in the case where binary is located in some other dir |
@asimpleidea Might be something with your working dir. I tried and it worked for me - |
I am able to reproduce it @asimpleidea Let me take a look. Thanks for point it out. |
I've noticed that running the tailcall start ./examples/jsonplaceholder_script.graphql However, when changing into the cd examples
tailcall start jsonplaceholder_script.graphql it results in the error described in this issue. |
/bounty 50$ |
💎 $50 bounty • Tailcall Inc.Steps to solve:
🙏 Thank you for contributing to tailcallhq/tailcall! |
Thank you! I would try to fix this myself but I discovered the project just today so I am not very familiar with its code yet |
@asimpleidea This has been fixed in the latest release please check it out — https://github.com/tailcallhq/tailcall/releases/tag/v0.111.4 |
Prerequisites
Describe the bug
Custom javascript functions/files seem not to be loaded correctly.
Steps to reproduce
Note
This also happens if you just clone the repo, and run:
tailcall start jsonplaceholder_script.graphql
.main.graphql
:worker.js
file in the same directory asmain.graphql
above:main.graphql
andworker.js
run:you will see that the js file was successfully loaded:
the returned response will show that
worker.js
was not actually loaded:Expected behavior
The response should not contain an error.
The console should print
GET something...
.Actual behavior
An error is shown that
worker.js
was not actually loaded.Screenshots
Environment information:
macOS 14.6.1 (M1 Pro)
tailcall v0.111.2
rustc 1.81.0 (eeb90cda1 2024-09-04)
curl 8.7.1 (x86_64-apple-darwin23.0)
Additional context
Examples are exactly the same provided from documentation.
Logs
Provided in Steps to reproduce
The text was updated successfully, but these errors were encountered: