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

Bigquery connection failing #143

Closed
Navrooz opened this issue Feb 3, 2023 · 16 comments
Closed

Bigquery connection failing #143

Navrooz opened this issue Feb 3, 2023 · 16 comments
Assignees

Comments

@Navrooz
Copy link

Navrooz commented Feb 3, 2023

I have been trying to connect VulcanSQL with BigQuery but receive an error 'Not found'.

Also, not getting any endpoints in /localhost/doc
image

image

The credentials file is working fine as I tested the connection with DBeaver.

  • profiles, vulcan, sql and yaml files are at the below link.

Files: https://drive.google.com/drive/folders/1g1lyEG32x63hAzrIo2JK8vFAk5GpNC1U?usp=sharing

@wwwy3y3
Copy link
Member

wwwy3y3 commented Feb 4, 2023

hi @Navrooz , thanks for your issue report. We'll check out your attached files and see what's going on.

@JSYOU
Copy link
Contributor

JSYOU commented Feb 4, 2023

Hi @Navrooz, based on your configuration in vulcan.yaml, the files user.sql and user.yaml need to be placed in the sqls folder in order for it to run correctly.

image

Please create a sqls folder and move user.sql and user.yaml into it, then try again. Thank you.

image

@JSYOU JSYOU self-assigned this Feb 4, 2023
@Navrooz
Copy link
Author

Navrooz commented Feb 6, 2023

@JSYOU -Hi, Thank you for your reply !
Both the user.sql and user.yaml files are already in sqls folder.
vulcanTest-1

@JSYOU
Copy link
Contributor

JSYOU commented Feb 6, 2023

Hi @Navrooz ,
Have you successfully executed your project?

@Navrooz
Copy link
Author

Navrooz commented Feb 6, 2023

I tried but as I shared in the screenshots, I get an error 'Not Found' and blank 'localhost:3000/doc' page. It seems like Vulcan is not parsing the endpoint.

@JSYOU
Copy link
Contributor

JSYOU commented Feb 7, 2023

Hi @Navrooz ,
Are you using the vulcan start command in the vulcanTest-1 directory?

We recommend that the working directory be in the same location as the vulcan.yaml.

If you want to use the vulcan start --config ./vulcanTest-1/vulcan.yaml command from the upper directory, you need to add ./vulcanTest-1/ to the path of folderPath, 'profiles', keyFilename in vulcan.yaml and profiles.yaml.

for example:
Directory Structure
image

vulcan.yaml
image

profiles.yaml
image

@Navrooz
Copy link
Author

Navrooz commented Feb 7, 2023

Hi @JSYOU ,

Thank you for your valuable suggestion.

I am executing the vulcan start command from the vulcanTest-1 directory which has vulcan.yaml, profiles and creds file in it.The result is still the same (Blank home page with no endpoints and 'Not Found' error on API endpoint). Please let me know if you need any files from my end for investigation.

image

image

image

image

image

@wwwy3y3
Copy link
Member

wwwy3y3 commented Feb 7, 2023

hi @Navrooz
Can you also provide following information ?

  • Version:
    Use command vulcan version to get your packages' version

    cli version: 0.1.0-alpha.1
    core version: 0.1.0-alpha.1
    build version: 0.1.0-alpha.1
    serve version: 0.1.0-alpha.1
    
  • OS: macOS, windows 11 ...

@Navrooz
Copy link
Author

Navrooz commented Feb 7, 2023

Yes sure. Here's the extract:
OS: Windows 11
image

@oscar60310
Copy link
Contributor

It looks like a file listing issue on Windows, we handled it when initializing projects but not for searching sql files.
https://github.com/Canner/vulcan-sql/blob/develop/packages/cli/src/commands/init.ts#L131
https://github.com/Canner/vulcan-sql/blob/develop/packages/build/src/lib/schema-parser/schema-reader/fileSchemaReader.ts#L59

@Navrooz
Copy link
Author

Navrooz commented Feb 8, 2023

So, is there any workaround for sqls in Windows ?

@Navrooz
Copy link
Author

Navrooz commented Feb 10, 2023

You are right, the problem is with listing issue .I tried to reproduce the issue and below are my findings.

1.The demo project https://vulcansql.com/docs/quickstart runs fine. However, if I modify the sql path in vulcan.yaml then I am encountering the same issue as with my project i.e. no endpoints appearing in localhost:3000/doc

VulcanTesting-1
VulcanTesting-2

2. I changed code as described in your above comment and tried executing the project but no luck.

VulcanTesting-5
VulcanTesting-6
VulcanTesting-7

3.Tried running the project in Linux environment on Windows using WSL. It's not able to install dependencies and fails at building project stage.

VulcanTesting-8

@wwwy3y3
Copy link
Member

wwwy3y3 commented Feb 13, 2023

@Navrooz We're fixing this windows issue in #145.

Please give us some time to do a proper PR review.

We'll release a new version after this PR get merged.

@wwwy3y3
Copy link
Member

wwwy3y3 commented Feb 18, 2023

hi @Navrooz thanks for your patience. This windows path issues has been fixed at release v0.3.2.

Please upgrade your version and let us know if it resolves your issues. We'll close this issue in a few days if it's resolved or other issues come up unrelated to this windows path parsing issue.

If there are other windows development issues, please do share with us at our discussion thread: #148

@Navrooz
Copy link
Author

Navrooz commented Feb 22, 2023

@wwwy3y3 Thank you for the update!

I am able to establish the connection and receive response now.

@wwwy3y3
Copy link
Member

wwwy3y3 commented Feb 22, 2023

@Navrooz Glad to hear that!

If there are other windows development issues come up, please do let us know at our discussion thread: #148

Closing this issue.

@wwwy3y3 wwwy3y3 closed this as completed Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants