Currently, I am using a trial version.When hit from the php code using the monolog and syslog, the logs are displayed in the stackify log management console.But as mentioned in
https://github.com/stackify/stackify-api/blob/master/endpoints/POST_Log_Save.md
When I hit using POSTMAN tool, the response I receive is
{
"success": true,
"took": 46
}
But the logs are not displayed in the stackify logs console.
My postman request headers:
Content-Type,Accept,X-Stackify-PV,X-Stackify-Key are provided.
Body:
{
"Env": "Prod",
"ServerName": "rajeshwar-latitude-3450",
"AppName": "Stackifytest",
"Msgs": [
{
"Msg": "debug message",
"Level": "DEBUG"
},
{
"Msg": "info message",
"Level": "DEBUG"
}
]
}
I'm pretty sure the EpochMs field is required.
Please check the readme file. It says which fields are required.
https://github.com/stackify/stackify-api/blob/master/endpoints/POST_Log_Save.md
Related
there I am new to WordPress.
I have created a Login API, using the plugin called simple jwt login, but it returns me the response like this.
{
"success": true,
"data": {
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTI4NTQxNTEsImVtYWlsIjoiYWJkdWxsYWhAbnJ0Y2dyb3VwLmNvbSIsImlkIjo3NTcwMCwic2l0ZSI6Imh0dHA6XC9cLzIwLjEyNi4xMjEuMTEyXC9ucnRjIiwidXNlcm5hbWUiOiJhYmR1bGxhaEBucnRjZ3JvdXAuY29tIiwidXNlcklkIjo3NTcwMCwib2xkVXNlcklkIjpudWxsLCJkaXNwbGF5X25hbWUiOiJBYmR1YWxsYWggdGVzdCIsInNlc3Npb25JZCI6Im9paGNuMmdrZXFpOWRxa25lZTRkbHVrMWJnIiwiaXNzIjoiYXBwQHNlY3VyZS5ucnRjZnJlc2guY29tIiwic3ViIjoiYXBwQHNlY3VyZS5ucnRjZnJlc2guY29tIiwiZXhwIjoxNjUyODU0MTUxLCJraW5kIjoiYXV0aC10b2tlbiIsInJvbGVzIjpbImN1c3RvbWVyIl0sImNvY2FydF9rZXkiOnsiY19rZXkiOiJja18xMGFiMDJiYTdjMDJlYmU1ZTliZmQwNjg4M2Q1MDc4NjQ0MTI0ZGMxIiwiY19zZWNyZXQiOiJjc19lODMwOWUwODFlYTZmNTkzNTE3MWYyMDE4OGZiZTUyNjliZDhmZTBlIn19.MSWyFCyu6D88dj2MhD7MrV9x1-L7MUnFS4WAKyc_ALo"
}
}
--> But I am looking for the response like this:
{
"success": true,
"data": {
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTI4NTQxNTEsImVtYWlsIjoiYWJkdWxsYWhAbnJ0Y2dyb3VwLmNvbSIsImlkIjo3NTcwMCwic2l0ZSI6Imh0dHA6XC9cLzIwLjEyNi4xMjEuMTEyXC9ucnRjIiwidXNlcm5hbWUiOiJhYmR1bGxhaEBucnRjZ3JvdXAuY29tIiwidXNlcklkIjo3NTcwMCwib2xkVXNlcklkIjpudWxsLCJkaXNwbGF5X25hbWUiOiJBYmR1YWxsYWggdGVzdCIsInNlc3Npb25JZCI6Im9paGNuMmdrZXFpOWRxa25lZTRkbHVrMWJnIiwiaXNzIjoiYXBwQHNlY3VyZS5ucnRjZnJlc2guY29tIiwic3ViIjoiYXBwQHNlY3VyZS5ucnRjZnJlc2guY29tIiwiZXhwIjoxNjUyODU0MTUxLCJraW5kIjoiYXV0aC10b2tlbiIsInJvbGVzIjpbImN1c3RvbWVyIl0sImNvY2FydF9rZXkiOnsiY19rZXkiOiJja18xMGFiMDJiYTdjMDJlYmU1ZTliZmQwNjg4M2Q1MDc4NjQ0MTI0ZGMxIiwiY19zZWNyZXQiOiJjc19lODMwOWUwODFlYTZmNTkzNTE3MWYyMDE4OGZiZTUyNjliZDhmZTBlIn19.MSWyFCyu6D88dj2MhD7MrV9x1-L7MUnFS4WAKyc_ALo",
"oldUserId": null,
"displayName": "Abduallah test",
"roles": [
"customer"
],
"expiresIn": 1652854151
}
How can I make changes to the plugin code to achieve the above response??
I appreciate your efforts and support in advance.
Thanks a lot...
I working on a BotMan based Messenger chatbot. I set up everything, tried to test out, everything went fine, but I got stuck.
I wanted to send an image as a response from my bot to my Facebook profile. It sent the image, but after it I got stuck: It tries to send the message again and I see in nGrok, that I have an 500 error request from my webhook.
I tried the following:
comment out the code to debug
restart the webserver
restart nGrok and set up a new webhook with the new address
restart computer than do the earlier
Nothing is helped from the following. With other Facebook profile I can "speak" with it (I got the good responses for my test cases), but the first profile is stuck. How to "unstuck" it?
EDIT:
This is the object, what tries to send, but gains error 500:
{
"object": "page",
"entry": [
{
"id": "1718785685111526",
"time": 1518649220812,
"messaging": [
{
"sender": {
"id": "1718785685111526"
},
"recipient": {
"id": "1702775193145548"
},
"timestamp": 1518641306603,
"message": {
"is_echo": true,
"app_id": 813542108832080,
"mid": "mid.$cAAZBynpFHa9nx1ij61hlhNatNiJj",
"seq": 353844,
"attachments": [
{
"type": "image",
"payload": {
"url": "https://scontent-ort2-2.xx.fbcdn.net/v/t34.0-12/28001431_2003444363312322_578145807_n.jpg?_nc_ad=z-m&_nc_cid=0&oh=7088ad6e09a1c9851a967c8193ea3bf4&oe=5A871570"
}
}
]
}
}
]
}
]
}
I'm trying to use webhooks, but no events are being sent to my application via the webhook url. So far I was able to configure and send correctly envelopes with enough information to monitor status, but when things changes in the envelopes, nothing happens, I mean, no requests are made to my webhook URL, at all.
My app is doing good, so if I manually hit (GET) https://subdomain.app.com/docusign/webhook, it works fine and it shows both on my app log and Nginx log. But viewing, signing and completing documents/envelopes are not generating events to the webhook url.
I noticed that, in the examples, the events are capitalized for recientEvents, but not for envelopeEvents, is this right?
Is there anything else to be configured?
Is is possible to see this information in the Docusign web interface (https://account-d.docusign.com/logout#/username)? I would like to check if this data is correctly set in the envelope.
Here's the envelope request (minus some data):
{
"documents": [{
"documentId": 1,
"name": "XXXXXXXXX.pdf",
"documentBase64": "XXXXXXX"
}],
"recipients": {
"signers": [{
"tabs": {
"signHereTabs": [{
"documentId": 1,
"recipientId": 1,
"pageNumber": 1,
"anchorString": "recipient_signature"
}]
},
"name": "XXXXXX",
"email": "XXXX#XXXX.co",
"recipientId": 1,
"clientUserId": XXXX
}]
},
"eventNotification": {
"url": "https:\/\/subdomain.app.com\/docusign\/webhook",
"loggingEnabled": "true",
"envelopeEvents": [{
"envelopeEventStatusCode": "sent"
}, {
"envelopeEventStatusCode": "delivered"
}, {
"envelopeEventStatusCode": "completed"
}, {
"envelopeEventStatusCode": "declined"
}, {
"envelopeEventStatusCode": "voided"
}, {
"envelopeEventStatusCode": "sent"
}, {
"envelopeEventStatusCode": "sent"
}],
"recipientEvents": [{
"recipientEventStatusCode": "Sent"
}, {
"recipientEventStatusCode": "Delivered"
}, {
"recipientEventStatusCode": "Completed"
}, {
"recipientEventStatusCode": "Declined"
}, {
"recipientEventStatusCode": "AuthenticationFailed"
}, {
"recipientEventStatusCode": "AutoResponded"
}]
},
"status": "sent",
"emailSubject": "XXXXXX",
"brandId": "XXXXXXXXXX"
}
EDIT:
Entering Connect -> Log/Failures looks like the system is not really performing as it should, because sometimes I get
And some other times I get an empty list. Going in the publish option, when it's working I get a list of documents/envelopes, and I see the last envelope I sent there, which looks fine.
You can view your recent connect logs/failures at the Docusign Admin web application. See instructions to use the Admin site here
If your connect messages were not sent, to the listener URL you provided, they should show up in the failures section.
API : You can also view your connect logs/failure using the connectEvents api's
Here is some documentation for troubleshooting connect issues.
The capitalization of status codes is not an issue. They are case insensitive.
Okay so I setup my own locally running copy of DreamFactory ... all this works on the hosted version ... but my problem when i try to send a test email using say this:
{
"to": [
{
"name": "Demo",
"email": "demo#acme.com"
}
],
"subject": "Testing SMTP Email Service",
"body_text": "I am sending a Test email from my DSP."
}
I get this response:
{
"error": [
{
"context": null,
"message": "Failed to send to the following addresses:Array\n(\n [0] => demo#acme.com\n)\n",
"code": 500
}
]
}
Seems to me it's trying to use all of that for the email address instead of the address itself and I can not figure out why.
Please try upgrading to the newest version of the DSP (v. 1.7.8)
I was able to use this json on my localhost and all was okay:
{
"to": [{
"name": "Demo",
"email": "demo#acme.com"
}],
"subject": "Testing SMTP Email Service",
"body_text": "I am sending a Test email from my DSP."
}
If it gives another issue after you upgrade, please let me know.
Thanks,
Mark
I have 4 templates but one returns error: "reject_reason": "invalid-sender".
I didn't find this error. in Docs.
I have 4 templates in my account and current template has following structure:
Template Slug: contact-home
From Address : info#somecomp.com
From Name: SOME_COMP
++ template as HTML.
This is a request I send from API Logs:
Full Request
{
"template_name": "contact-home",
"template_content": [
{
"name": "example name",
"content": "example content"
}
],
"message": {
"dest_mail": "mymail#gmail.com",
"merge": "true",
"to": [
{
"email": "mymail#gmail.com"
}
],
"merge_vars": [
{
"rcpt": "mymail#gmail.com",
"vars": [
{
"name": "FNAME",
"content": "name"
}
]
}
]
},
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
Full response
[
{
"email": "abc#gmail.com",
"status": "rejected",
"_id": "a305475c544a4f12a52f5a2b205c2505",
"reject_reason": "invalid-sender"
}
]
I don't think its PHP problem because 3 other templates have the same structure and I use one PHP method.
Thank you,
I think its Mandrill issue.
The fix is:
open template
remove sender mail
press Publish
set the same mail
press Publish
Now its work.
If you need additional info let me know
Thanks