Giter Club home page Giter Club logo

Comments (12)

Lierrmm avatar Lierrmm commented on August 26, 2024

"Not permitted: not allowed" means you do not have permission to view the data. i.e. Your not authenticated properly or the user you are looking up has their stats set to private.

from node-callofduty.

guyng avatar guyng commented on August 26, 2024

"Not permitted: not allowed" means you do not have permission to view the data. i.e. Your not authenticated properly or the user you are looking up has their stats set to private.

Hm, it happens just with activision users i don't think its authentication issue because i do get the atkn, rtkn and use it in my cookie but also the users i'm trying it on the match data is being tracked fine by cod.tracker.gg maybe activision made some changes?
I know for a fact that the guy in the screenshot below has his stats set to public but still i get the same error when i try to fetch his stats. can you try
to get stats for him and see if it works?
@Lierrmm
Screenshot_11

from node-callofduty.

Lierrmm avatar Lierrmm commented on August 26, 2024

Yes, You will get this error when looking up Activision IDs. It is a change ATVI made several months ago related to other sites charging for certain information.

AFAIK, CODTracker has a deal with ATVI to retrieve this information, which is why you are able to see it on their website.

from node-callofduty.

SwiftCODA avatar SwiftCODA commented on August 26, 2024

Hi @Lierrmm. I was about to post the same issue but then I saw this one. I'm trying to create a wrapper in Swift which is based off of your Node.js wrapper. My first step is to organize the requests with Postman. I'm getting the same error message when requesting a PlayStation user. Please feel free to point out anything I'm doing wrong in these requests.

  1. registerDevice (POST)

Screen Shot 2021-06-07 at 10 57 20 AM

Response:

{
    "status": "success",
    "exceptionMessageList": [],
    "errors": {},
    "exceptionMessageCode": null,
    "data": {
        "authHeader": "731831176a265d232f40b0a6d6f8b1b9"
    }
}
  1. login (POST)

Screen Shot 2021-06-07 at 10 59 05 AM

Screen Shot 2021-06-07 at 10 59 29 AM

Screen Shot 2021-06-07 at 10 59 51 AM

Response:

{
    "rtkn": "myRtkn",
    "ACT_SSO_COOKIE": "myActSsoCookie",
    "ACT_SSO_COOKIE_EXPIRY": 1638640874103,
    "gameAccountLinked": true,
    "success": true,
    "ACT_AUTH_TOKEN": null,
    "s_ACT_SSO_COOKIE": "mySActSsoCookie",
    "atkn": "myAtkn"
}
  1. getMWMultiplayer (GET)

Screen Shot 2021-06-07 at 11 02 43 AM

Screen Shot 2021-06-07 at 11 03 04 AM

Main Cookie: new_SiteId=cod; ACT_SSO_LOCALE=en_US;country=US;XSRF-TOKEN=68e8b62e-1d9d-4ce1-b93f-cbe5ff31a041;API_CSRF_TOKEN=68e8b62e-1d9d-4ce1-b93f-cbe5ff31a041;rtkn=myRtkn;ACT_SSO_COOKIE=myActSsoCookie;atkn=myAtkn;

Response:

{
    "status": "error",
    "data": {
        "type": "com.activision.mt.common.stdtools.exceptions.NoStackTraceException",
        "message": "Not permitted: not allowed"
    }
}

from node-callofduty.

Lierrmm avatar Lierrmm commented on August 26, 2024

Hi @Lierrmm. I was about to post the same issue but then I saw this one. I'm trying to create a wrapper in Swift which is based off of your Node.js wrapper. My first step is to organize the requests with Postman. I'm getting the same error message when requesting a PlayStation user. Please feel free to point out anything I'm doing wrong in these requests.

  1. registerDevice (POST)
Screen Shot 2021-06-07 at 10 57 20 AM

Response:

{
    "status": "success",
    "exceptionMessageList": [],
    "errors": {},
    "exceptionMessageCode": null,
    "data": {
        "authHeader": "731831176a265d232f40b0a6d6f8b1b9"
    }
}
  1. login (POST)
Screen Shot 2021-06-07 at 10 59 05 AM Screen Shot 2021-06-07 at 10 59 29 AM Screen Shot 2021-06-07 at 10 59 51 AM

Response:

{
    "rtkn": "myRtkn",
    "ACT_SSO_COOKIE": "myActSsoCookie",
    "ACT_SSO_COOKIE_EXPIRY": 1638640874103,
    "gameAccountLinked": true,
    "success": true,
    "ACT_AUTH_TOKEN": null,
    "s_ACT_SSO_COOKIE": "mySActSsoCookie",
    "atkn": "myAtkn"
}
  1. getMWMultiplayer (GET)
Screen Shot 2021-06-07 at 11 02 43 AM Screen Shot 2021-06-07 at 11 03 04 AM

Main Cookie: new_SiteId=cod; ACT_SSO_LOCALE=en_US;country=US;XSRF-TOKEN=68e8b62e-1d9d-4ce1-b93f-cbe5ff31a041;API_CSRF_TOKEN=68e8b62e-1d9d-4ce1-b93f-cbe5ff31a041;rtkn=myRtkn;ACT_SSO_COOKIE=myActSsoCookie;atkn=myAtkn;
Response:

{
    "status": "error",
    "data": {
        "type": "com.activision.mt.common.stdtools.exceptions.NoStackTraceException",
        "message": "Not permitted: not allowed"
    }
}

Feel free to add me on discord: Liam#0947 we can go through it step by step.

from node-callofduty.

SwiftCODA avatar SwiftCODA commented on August 26, 2024

@Lierrmm Just added you SwiftCODA#2497.

from node-callofduty.

Emad-salah avatar Emad-salah commented on August 26, 2024

Was this issue ever solved? I see that it ended suddenly with you adding the other guy and I don't see a solution here.

from node-callofduty.

SwiftCODA avatar SwiftCODA commented on August 26, 2024

@Emad-salah I ended up not using this API, or any COD API for that matter. I got locked out of my Discord and honestly I don't remember if we ever solved the issue or not. Sorry man.

from node-callofduty.

Lierrmm avatar Lierrmm commented on August 26, 2024

Was this issue ever solved? I see that it ended suddenly with you adding the other guy and I don't see a solution here.

@Emad-salah what platform are you using when querying? ACTI and UNO will no longer work due to restrictions from the COD API itself.

from node-callofduty.

Emad-salah avatar Emad-salah commented on August 26, 2024

@Lierrmm sorry for the late reply didn't realize you responded. I was aware Acti and UNO won't work but the issue is showing up for me when I try to link some PSN/BNET accounts but not all of them

from node-callofduty.

Lierrmm avatar Lierrmm commented on August 26, 2024

I know some users have been complaining about this and it seems to be something on the COD API side. If you join the discord server, I can look into it more for you.

from node-callofduty.

Emad-salah avatar Emad-salah commented on August 26, 2024

great, I will join and let you know! Thank you!

from node-callofduty.

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.