-
Notifications
You must be signed in to change notification settings - Fork 8
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
creat new list got error 404:Exception raised: API error 404 when requesting https://apiv3.emailsys.net/v1/recipientlists. Detail: <html> #13
Comments
Hello @pedramham. I tried to reproduce this issue, but could not. Can you try to verify again if the issue persists? For me it works as expected with our test accounts and credentials. I saw that you already contacted our customer support directly. Please let them know which account you're working with so i can trace this further. Please do not post any account details or credentials here though :) Best wishes |
Hello Simon. thank you for your rapid response.
is it possible it happened because *test_mode* is enabled in my account? if
it is how can I disable it?
----------------------------------------------
I have another question if there is a forum or group on slack or something like that that I can use please let me know.
Can I get only the data related to a list using the query method? I'm looking for something like this.
with this query, I got all lists in the output
$listService = $this->client->recipientlists();
try {
return $listService->query(['name' => 'listName']);
} catch (ApiClientException $e) {
// Catch API client exceptions
echo "Exception raised: " . $e->getMessage();
}
|
@pedramham demo mode shouldn't affect your access to the API. This is especially awkward behavior as it seems to respond as HTML. The API should always return JSON responses though. Regarding your query question: Filtering lists by name is currently not supported. |
@pedramham we have identified the issue. It appears that under certain circumstances the API client generates an invalid request body. Working on a fix. |
@pedramham i just noticed where the actual issue lies, it's not the client afterall, you simply have an additional array level in your code:
This is how your code should look - this will work. I did however identify a bug on the server-side causing wrong responses if data like this is posted. Will be deploying a fix for it this morning. |
@eth8505 did you use nginx or apache? I have the same issues with nginx. |
Hello
For getting a list of emails from the recipientlists or adding an item to an existing list, everything works correctly.
But when I try to use the recipientlists method to create a new list I got an error
I got error 404
The text was updated successfully, but these errors were encountered: