send snowflake runtime errors to Amazon Notification Service(SNS) - snowflake-cloud-data-platform

I want to listen to the errors when some script are executed in snowflake and send them to the Amazon Notification Service(SNS), anyone can guide me please how to implement that in snowflake? thanks

You could create an external function that sends the SNS message:
https://docs.snowflake.com/en/sql-reference/external-functions-introduction.html
https://mkdev.me/en/posts/how-to-send-sms-messages-with-aws-lambda-sns-and-python-3
Then in Snowflake you could run:
select external_function('error message');
Then your external function would send 'error message' as an SNS message.

Related

I want to be notified by email of error messages when executing Snowflake tasks

I would like to ask how to notify the error message when executing a task by e-mail.
As a premise, I know that notification is possible using AWS (S3 and Lambda, SNS).
But is there a way to notify emails with Snowflake's default features?
Thank you for your confirmation.
Snowflake does not have this mechanism by default.
But to achieve this, you can use any of the following suggestions:
Write a JAVA stored procedure (Python is in private preview) to
send messages and attach as a subtask.
You can use SNOWALERT
Or, as you wrote, use AWS mechanisms such as Amazon CloudWatch
Snowflake can send emails now with call system$send_email(). You can call this within your tasks.
For example:
call system$send_email(
'my_email_int',
'felipe#example.com, dan#example.com, rajiv#example.com',
'This is the subject',
'This is the body'
);
Read more:
https://hoffa.medium.com/hey-snowflake-send-me-an-email-243741a0fe3

error_message: 'the requested product is not yet ready. please provide a webhook or try the request again later',

I am using https://blog.bitsrc.io/build-a-full-stack-banking-web-app-with-plaid-the-mern-stack-508914ce5694 tutorial to build a bank web app. It is working but when I add another bank account it gives me error in terminal:
error_code: 'PRODUCT_NOT_READY', error_message: 'the requested product
is not yet ready. please provide a webhook or try the request again
later', following error Uncaught TypeError: Cannot read property
'forEach' of null when I restart the server I can see the new bank
account and tran#sactions.
You can't call /transactions/get immediately after Link because Plaid needs a few seconds to initialize transaction data. That's why you need to wait for a webhook to tell you that transactions are ready. See Transactions webhooks for more info.
As for there uncaught type error, as the other commenters point out, that's not possible to troubleshoot based on the info provided here.

Google cloud pub sub not receiving push notification to my endpoint

I am using google cloud pub-sub push notifications to receive the latest emails.
But I am not receiving any notification at my endpoint.
What can be the issue, or how can I find out the issue?
In the Subscription page you can find the details about the following details:
Unacked message count
Oldest unacked message age
From those two metrics you can try to debug whether the message actually received in the subscription or not.
Hope it helps.

Send messages from rabbitMQ to PostgreSQL

I know it is possible to send messages from PostgreSQL to RabbitMQ, but is it possible to send messages from RabbitMQ to PostgreSQL.
Right now i am feeding RabbitMQ throught the amqp plugin with some data coming from a raspberry-pi using MQTT.
So yeah, i was wondering if it was possible to run a script or install another plugin in the database or if i would need something between the two to process the messages and converting it.
Thank you!
We need to write another service which will subscribe to rabbitmq message that service will insert the data into db. You can create service or any plugin which can consume messages from queue.

The Messenger service has not been started - NetSend notifications will not be sent

In my SQL Server agent, I did not set any notifications, then why this error is coming?
I run pakg through dtsexec it executes successfully, and also I run a simple job for inserting record it runs successfully, but when in job step I select file system and give package path and run job it gives me that error:
The Messenger service has not been started - NetSend notifications
will not be sent
I check in services.msc but there is no service like window messenger, I also check in gpedit, there is a window messenger, I apply its all three options enable,disabled, not configure one by one but did not get rid to that error.
any help will be appreciated, Thanks in advance.
This is an informational message that appears and can be safely ignored if you are not using net send alerts.
If you wish to send net send alerts then you have to set the Messenger service to at least Manual startup, preferably Automatic. Then you have to start the service.
It does a check to see if the Messenger service is running, if it isn't then it produces this message as information to say "I cannot send net sends" but it doesn't necessarily mean there is a problem if you are not using net send alerting.
Windows server 2008 have no messenger service at all. msdn forum topic with additional info about your problem. Just ignore it.

Resources