question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create trigger failed

See original GitHub issue

I receive an error whenever I attempt to add a trigger. The message indicates I’m using invalid characters but that doesn’t seem to be the case. In the example I’m just using “test”.

Based on the error I think the error originates from https://github.com/hasura/graphql-engine/blob/master/server/src-lib/Hasura/RQL/Types/Subscribe.hs#L129

When I look at the request from the console it’s sending:

{"name":"create_trigger_test","up":[{"type":"create_event_trigger","args":{"name":"test","table":{"name":"submissions","schema":"public"},"webhook":"https://localhost:9292/hook","insert":{"columns":["id","embed_id","created_at","created_by_id"]},"headers":[]}}],"down":[{"type":"delete_event_trigger","args":{"name":"test"}}]}

I’m using v1.0.0-alpha28

screen shot 2018-11-07 at 9 41 36 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nathanstittcommented, Nov 22, 2018

For anyone else encountering this, I’ve tested and the issue is resolved in v1.0.0-alpha29.

Thanks @0x777 & @tirumaraiselvan - I’m really loving graphql-engine!

0reactions
0x777commented, Nov 19, 2018

closed with fca0ebf18642075e2706bed528bb57356e586876

Read more comments on GitHub >

github_iconTop Results From Across the Web

syntax error in create trigger, what's wrong? - Stack Overflow
You forgot to change the delimiter, so MySQL thinks your first statement is this: CREATE TRIGGER `trg_part_upd` AFTER UPDATE ON ...
Read more >
Trigger keeps creating error - MariaDB Knowledge Base
Trigger keeps creating error. I am not understanding why I keep getting this error. Can anyone explain? I am entering it through HeidiSQL:...
Read more >
insert trigger failing -> this fails the original insert? - MSDN
I'm new to triggers. I have an insert trigger defined on table1. This trigger writes certain data to table2. When the trigger fails, ......
Read more >
2559983 - Trigger Creation Error in SLT: inconsistent datatype
After a source refresh or migration, table fails to replicate. View Error for table has error similar to: Failed to create triggers for...
Read more >
Dropping or disabling a trigger fails with error -242 / -106 - IBM
1) Use LOCK MODE WAIT for the session which runs the DDL statement. 2) Use undocumented $ONCONFIG parameter & environment variable NONEXCLTRIG.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found