Comments (10)
Try checking your api key and the permissions assigned to it. You're getting a 403 forbidden error indicating that one or both of these is incorrect.
from csharp-sparkpost.
What error are you getting?
from csharp-sparkpost.
from csharp-sparkpost.
The first thing I would try is removing the date filters. Does that fix the error?
from csharp-sparkpost.
I removed the data filters but I still getting the error.
from csharp-sparkpost.
Just getting back from vacation...
I asked you to look at the date filters because I've seen discrepancies between the format of date/times in the SparkPost HTTP API. Just a shot in the dark, but that doesn't seem to be a problem.
I tried my own API key, firing a transmission and then querying for the message events. I had no problem using the same query parameters. The screenshot is below.
Since all messages are sent through C#'s async, you might have to look at InnerException
on the exception object you get more specific results. I can't read spanish, but that looks like the AggregateException that sometimes wraps these types of exceptions.
from csharp-sparkpost.
If you can provide more information regarding this exception, please feel free to reopen this issue. Or if you come to a resolution, please share here in case someone else searches for the same issue.
I'm going to close this ticket only because the API seems to be working ok and I can't reproduce the issue.
from csharp-sparkpost.
Sorry I read data filters, but I follow your example and is the same Error. I cant get Message Events of a transmission, the InnerException is the next:
from csharp-sparkpost.
Thank you csprofiles-sowens that is the answer. I didn't know that the ApiKey had permissions to assign to it. Sorry darrentcauthon, that was not a API issue.
from csharp-sparkpost.
No problem @JoseAntonioTorresEspinoza . Thanks @csprofiles-sowens
from csharp-sparkpost.
Related Issues (20)
- Custom Headers
- Sparkpost EU suppression generates 403 error HOT 1
- Migrate to .NETStandard HOT 3
- TLS upgrade HOT 5
- Error Retrieving Recipient List HOT 1
- Authentication failed because the remote party has closed the transport stream. HOT 1
- An existing connection was terminated by the remote host HOT 1
- SparkPost Library not works HOT 2
- Only one usage of each socket address is normally permitted
- Nuget package dependency issues and .NET Core 2.1 HOT 1
- UserAgentTests Failure - It_should_default_to_the_library_version
- Compatibility with .NET 4.0?
- A/b Testing Support
- Message-Events is deprecated HOT 1
- Add Events API
- Feature request: support setup_api_key when creating subaccount
- Feature request: support ip_pool when creating subaccount
- State of this repo HOT 15
- Is the repo actively maintained?
- Client.CustomSettings.SendingMode = SendingModes.Sync is no more working in 2.0.2 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharp-sparkpost.