Skip to content

Trino connection request is failing with status code 401 while fetching schema and running queries #679

@sakethmukkanti

Description

@sakethmukkanti

What happens?

I am getting below error when trying to fetch schema and run Malloy queries for an Iceberg table using Trino connection -

Error(s) compiling model: FILE: file:///my_path/trino_queries.malloy line 1: Could not fetch schema for table Catalog.Schema.Table Request failed with status code 401 | source: my_source is trino.table('Catalog.Schema.Table') extend { | ^

To Reproduce

These are the steps I followed to run Malloy queries -

  • Installed Malloy VS Code extension in my local VS Code
  • Opened VS Code from terminal after setting "export NODE_TLS_REJECT_UNAUTHORIZED=0" (to avoid unable to get local issuer certificate)
  • Created a new connection in Edit Connections tab with the connection type as Trino and provided all the details.
  • Able to test the connection and getting Success message
  • Created a Malloy source and clicked Schema button on top and I am getting below error

OS:

macOs

Malloy Client:

local VSCode

Malloy Client Version:

VSCode Extension 0.2.1757277942

Database Connection:

Trino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions