What does the error msg ENVELOPE_HAS_DUPLICATE_RECIPIENTS mean? - docusignapi

Looking at the envelope JSON there is only one recipient email. So this must indicate some other issue. Can someone steer me toward something in the docs that talks about it?
Thanks

I suggest that you use the API Logging feature to see exactly what DocuSign is receiving from your application.
If that doesn't help you solve the problem then edit your question to add the logger's output.
Use a tool such as JSON Pretty print to format your API request.
You'll also need to add 4 spaces per line so StackOverflow recognizes it as software/JSON for proper display.

The answer is it means the request JSON has duplicate RECIPIENTS arrays. It doesn't mean, at least in this case, there is a problem with recipient data.
And as far as a list of error codes there simply isn't one yet.
In this particular instance my code assembling the request incorrectly wrote the recipients array. A better message would be MALFOMED_JSON_REQUEST or such since that's what the problem actually was. Once I stopped looking at the recipients data I realized the problem.

Related

Gmail markup for online event

While there is good documentation around sending markup emails for specifying offline event. Refrence Can someone help me out on how to add handle an online event?
The issue with offline event is that I need to enter a proper postal address, however in our case the location is simply a url.
Things I have already tried
Putting type of location as VirtualLocation, but that gives error
Entering empty strings in PostalAddress fields
Marking eventAttendanceMode as https://schema.org/OnlineEventAttendanceMode, it gives error
Does gmail support markups for online events? Common sense says it should.
As said by #kayes-fahim comment you can find more information on their blog, and documentation.
By the blog post you could use the virtualLocation but you also need to set the eventAttendanceMode to OnlineEventAttendanceMode. Reference

in discord.py, How do I make a bot command that reaches multiple replies, saving the data into a variable?

I want to be able to create a command that lets me get a response from a user which will then be saved as a variable, that'll be saved into another file for safekeeping.
(an example would be making a character sheet in direct messages, where you need to input multiple messages to get the desired outcome.)
I'm stuck and need help with finding a reliable way to make replies and to be able to stock the ones sent by the user. Thank you in advance.
I am not sure, but i think what you are looking for is wait_for
There are two examples in the discord.py docs, the first example covers wait_for message. It can be found on this url: https://discordpy.readthedocs.io/en/latest/api.html?highlight=wait_for#discord.Client.wait_for

MalformedResponse at expected_inputs[0]: Responses must provide at least one possible intent if this is not the final response. What does it mean?

I created a very simple agent on dialogflow. Every now and then, even using static responses (where only the session ID changes), the application crashes (both on Google Assistant and in the simulator).
On the logs I find the message in question: "MalformedResponse at expected_inputs [0]: Responses must provide at least one possible if this is not the final response. What does it mean?".
I don't understand what it means.
Could anyone help me?
I'm having the same problem. That i've noted is that this problem doesn't ocurre every time. The behavior is really unstable.
I'm using 2 required parameters in the intent. I don't know if that has something to do with the problem.
MalformedResponse at expected_inputs[0].input_prompt: 'input_prompt' is empty
MalformedResponse at expected_inputs[0]: Responses must provide at least one possible intent if this is not the final response
The problem, appears to be caused when you use own parameters, not when use sys. parameters.
Google answer me the following:
"Hi Alberto,
This issue has already been escalated to our engineering team. You are correct about required parameters causing the problem. Our engineering team is working thoroughly to resolve this since it is affecting some other AoG projects as well. "
I was facing the exact same issue when I was using custom entities as input parameters to my action.
I was asking for 2 custom parameters and one system (sys.color) and triggering the same with input prompts.
I found a workaround for that by taking all 3 in separate intents and using the response of the previous intent as a trigger to enter the next parameter, also by making the training phrases as sample values of the custom parameter.
I am still in contact with Dialogflow Suppport and waiting for bug fix but it works for now.

How to tie in the back end?

I'm trying to send a simple text message with pickupLocation info from user input to a cell phone as a text. I retrieved a code snipped for message from the Twilio website, but I don't think I have the syntax correct to create the message in the index.js of Fulfillment.
I created a function to send the message and I think I'm on the right track but I can't seem to get the code to work properly and I cannot find a clear example of syntax to create the function for the text.
Can anyone help me? Here is the code I have so far and its not working when I deploy. Any assistance would be WONDERFUL! :) I have attached the snipped of code that I put together.
I'd be careful about posting your sid and authToken in here.
You don't need to define all of those variables as const.
Location(Date.parse(agent.parameters.pickupLocation))
Surely the pickup location isn't a date? I think your pickup location will be wrong from that every time.
Are you logging anything besides the message sid? What is happening when that functions runs?

What coding is used in this string?

My app is downloading eMails from a POP3 server. But it receives "strange" subject lines. I see there is a pattern of coding in there. But what exactly is that coding? What do I google for if I want cover the parsing of lines like that?
=?utf-8?Q?HMS=20will=20no=20longer=20provide=20Netbiter=20SIM=2Dcards?=
The eMail header is:
Subject: =?utf-8?Q?HMS=20will=20no=20longer=20provide=20Netbiter=20SIM=2Dcards?=
So I know it's coded by the sender. Also this is just one of many header lines, which all seem to be valid. The subject is obviously HMS will no longer provide Netbiter SIM-cards after you replace "=20" with spaces and all the other stuff. The eMail is just a notification from a supplier.
**Found it myself:** [RFC 2047][1]
I don't remember exactly but i have experienced a issue like this before. If the subject is greater than some length of character (which i think is 75 chars) then subject will not be parsed properly.
This used to be a problem in codeIgniter (I don't use it now, so don't know the current status of this issue)
To resolve this issue you might have to change your email config.
There might be other reasons for this issue but i think this is because you have more characters in your subject.

Resources