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

Import 'https://deno.land/x/sqlite/src/db.js' failed: 404 Not Found #27

Closed
blogwy opened this issue Jun 2, 2020 · 8 comments
Closed
Labels
question Further information is requested

Comments

@blogwy
Copy link

blogwy commented Jun 2, 2020

No description provided.

@eveningkid eveningkid added the question Further information is requested label Jun 2, 2020
@eveningkid
Copy link
Owner

Hey, not so sure what might be the issue there.

@dyedgreen, would you have some input on this?

Not so sure if the issue comes from the user or from the library.
I am personally facing no issue.

@dyedgreen
Copy link

This looks like an issue with and old/ outdated dependency. Can you try re-running your script with the --reload flag to check if that's the issue. (@blogwy)

If that doesn't help could you provide a minimal example code which reproduces the error?

@blogwy
Copy link
Author

blogwy commented Jun 3, 2020

Hey, not so sure what might be the issue there.

@dyedgreen, would you have some input on this?

Not so sure if the issue comes from the user or from the library.
I am personally facing no issue.

my code:
deno run --allow-net --reload mysql.ts

import { DATA_TYPES, Database, Model } from 'https://deno.land/x/denodb/mod.ts';
console.log(Database);

error: No such file or directory (os error 2)

@blogwy
Copy link
Author

blogwy commented Jun 3, 2020

Download https://deno.land/x/denodb/mod.ts
Download https://deno.land/x/denodb/lib/data-types.ts
Download https://deno.land/x/denodb/lib/database.ts
...
Compile file:///Users/wangyu/Desktop/workspace/deno-demo/mysql.ts
error: No such file or directory (os error 2)

@eveningkid
Copy link
Owner

Hello again,

I just tried myself and it works all fine. I even tried to reload all the librairies and there is no issue.

Try running (and add all the required --allow-* flags):

deno run --reload mysql.ts

If you are still facing an issue, I will need you to copy the entire mysql.ts file here.

Keep in touch

@eveningkid
Copy link
Owner

Since there was no follow-up and this seems to be a SQLite/denoDB non-related error, I will close this for now.

Feel free to reopen if the issue persists, and that you are sure the error comes from denoDB.

Thank you!

@cqthanh
Copy link

cqthanh commented Jun 17, 2020

Don't always add --reload flag on every run because https://deno.land/ has a limit of requests per hour. After you exceed that limit, you will get a 404 error!

@eveningkid
Copy link
Owner

Good to mention @cqthanh, it is supposedly only used to get the update you're right :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants