Code Monkey home page Code Monkey logo

Comments (10)

csprofiles-sowens avatar csprofiles-sowens commented on August 26, 2024 3

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.

darrencauthon avatar darrencauthon commented on August 26, 2024

What error are you getting?

from csharp-sparkpost.

JoseAntonioTorresEspinoza avatar JoseAntonioTorresEspinoza commented on August 26, 2024

message_events_list

from csharp-sparkpost.

darrencauthon avatar darrencauthon commented on August 26, 2024

The first thing I would try is removing the date filters. Does that fix the error?

from csharp-sparkpost.

JoseAntonioTorresEspinoza avatar JoseAntonioTorresEspinoza commented on August 26, 2024

I removed the data filters but I still getting the error.
message_envents_list_2
message_envents_list_3

from csharp-sparkpost.

darrencauthon avatar darrencauthon commented on August 26, 2024

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.

fullscreen_061816_023011_pm

from csharp-sparkpost.

darrencauthon avatar darrencauthon commented on August 26, 2024

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.

JoseAntonioTorresEspinoza avatar JoseAntonioTorresEspinoza commented on August 26, 2024

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:
message_envents_list_4

from csharp-sparkpost.

JoseAntonioTorresEspinoza avatar JoseAntonioTorresEspinoza commented on August 26, 2024

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.

darrencauthon avatar darrencauthon commented on August 26, 2024

No problem @JoseAntonioTorresEspinoza . Thanks @csprofiles-sowens

from csharp-sparkpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.