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

[Components] mitra #14274

Open
pipedream-component-development opened this issue Oct 10, 2024 · 1 comment · May be fixed by #14368
Open

[Components] mitra #14274

pipedream-component-development opened this issue Oct 10, 2024 · 1 comment · May be fixed by #14368
Assignees
Labels
triaged For maintainers: This issue has been triaged by a Pipedream employee

Comments

@pipedream-component-development
Copy link
Collaborator

pipedream-component-development commented Oct 10, 2024

mitra

URLs

Actions

get-data

Prompt

Fetches data from the specified table, allowing dynamic filters via query parameters.

insert-data

Prompt

Inserts one or more records into a table.

update-data

Prompt

Updates one or more records in a table.

delete-data

Prompt

Removes a record from a table.

@vunguyenhung vunguyenhung added the triaged For maintainers: This issue has been triaged by a Pipedream employee label Oct 14, 2024
@jcortes jcortes self-assigned this Oct 18, 2024
@jcortes jcortes moved this from To Do to Doing in Component (Source and Action) Backlog Oct 18, 2024
@jcortes
Copy link
Collaborator

jcortes commented Oct 19, 2024

There is a problem with the Mitra's api Insert Data endpoint because If I run the following command as an example where I previously have created the table Posts with ID as autoincrement and Description as the only text column.

curl -X POST 'https://api.mitrasheet.com:4088/rest/v0/Posts' \
-H 'Authorization: Bearer ${MY_API_KEY}' \
-H 'Content-Type: application/json' \
-d '{"Description": "Test 3"}'

I get the following error:

{
"name":"INTERNAL_SERVER_ERROR",
"code":500,
"date":"2024-10-19T00:28:06.818+00:00",
"tenant":"tenant_10377",
"message":"PreparedStatementCallback; SQL [INSERT INTO DIM_1001 (ID,DESCR) VALUES (?,?)]; 
  Duplicate entry '3' for key 'DIM_1001.PRIMARY'; 
  nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '3' for key 'DIM_1001.PRIMARY'", ...

@malexanderlim I'm moving this as blocked in the meanwhile

@jcortes jcortes moved this from Doing to Blocked in Component (Source and Action) Backlog Oct 19, 2024
@jcortes jcortes linked a pull request Oct 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged For maintainers: This issue has been triaged by a Pipedream employee
Development

Successfully merging a pull request may close this issue.

3 participants