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

ERROR: manageCurrentPosition Rejected supabase.ts (searchPositionSupaBase) Error: [object Object] #1

Open
kkoenen opened this issue Apr 27, 2022 · 0 comments

Comments

@kkoenen
Copy link

kkoenen commented Apr 27, 2022

Followed installation instructions. Result: Supabase error. During installation, I changed botname (TESTNET) in Import_SQL.sql and created tables as instructed. Botname is NOT "kkoenen". Not sure where "kkoenen" is assigned to variable, as I didn't use it in .env, or anywhere else.. where is it coming from? Tried copying the created tables and rename them to "kkoenen_1h_positions", that indeed solved this issue.

When writing to database, error:

Error @ positions { message: 'relation "public.**kkoenen**_1h_positions" does not exist', code: '42P01', details: null, hint: null } Error, please check bot. [object Object]

Issue solved by manually creating the table (copied original table, created by Import_SQL.sql. Question is why supabase.ts didn't use the right variable (from .env) in composing the tablenames.

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

1 participant