The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

mashery.not.authorized.inactive

SOLVED
Go to solution
Highlighted
Occasional Contributor

mashery.not.authorized.inactive

Hello,

 

I've developed some code that runs perfectly well using a .NET console application.  However, when I moved the code over to an existing web application, I started receiving the following message on any call that I made: 

 

Message = "mashery.not.authorized.inactive:The Mashery account associated with this request is not active, or an invalid API key was used.

 

The API key and Access Token are correct.  I haven't made any other changes, and verified that the code is exactly as it should be.  I stepped through it and verified the correct API / Token are being used.  

 

I'm not sure what's going on.  Does some other App setting have to match my actual application?  For example the only other difference that I note is that my console application (the one that works) uses "CCSync" as the name of the application, which happens to match the name I gave the App in Mashery.  The code was moved to a solution with a different name.  I don't see any references to App names anywhere, but just thought I'd check.  Anyone know what could be causing this?

 

Regards,

Alex

 

 

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: mashery.not.authorized.inactive

Hello Alex,

 

Thank you for reaching out to the API Support team here at Constant Contact.

 

The only reason that error should be returned is if you have an API Key that is disabled or are submitting the wrong information in its place.

 

Are you using our .Net SDK (https://github.com/constantcontact/.net-sdk)? If so, when creating a service object, the API Key and Access Token should be passed in the order of (accessToken, apiKey). I see this error most frequently when the API Key and Access Token are passed through in the reverse order (apiKey, accessToken), causing the request to submit your access token as your API Key; which would of course be invalid.

 

If you are not using our .net SDK and/or you are sure that you are passing the API Key in the correct place, I would recommend emailing us at webservices@constantcontact.com with your API Key and a snippet of the code you are using to build and submit your calls. That way we can ensure that your API Key is active, valid, and can work with your specific code to find the reason for this error.

 

Please let me know if you have any other questions!

 

Sincerely,
David B.
API Support Specialist

View solution in original post

1 REPLY 1
Highlighted
Moderator

Re: mashery.not.authorized.inactive

Hello Alex,

 

Thank you for reaching out to the API Support team here at Constant Contact.

 

The only reason that error should be returned is if you have an API Key that is disabled or are submitting the wrong information in its place.

 

Are you using our .Net SDK (https://github.com/constantcontact/.net-sdk)? If so, when creating a service object, the API Key and Access Token should be passed in the order of (accessToken, apiKey). I see this error most frequently when the API Key and Access Token are passed through in the reverse order (apiKey, accessToken), causing the request to submit your access token as your API Key; which would of course be invalid.

 

If you are not using our .net SDK and/or you are sure that you are passing the API Key in the correct place, I would recommend emailing us at webservices@constantcontact.com with your API Key and a snippet of the code you are using to build and submit your calls. That way we can ensure that your API Key is active, valid, and can work with your specific code to find the reason for this error.

 

Please let me know if you have any other questions!

 

Sincerely,
David B.
API Support Specialist

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured