psnawp icon indicating copy to clipboard operation
psnawp copied to clipboard

search question

Open glebmiller opened this issue 1 year ago • 5 comments
trafficstars

can you pls tell me, why do I get this error?

{
    "error": {
        "referenceId": "16dd1d74-b0e7-4d56-aafd-017e15d257f5",
        "code": 3415813,
        "message": "JSON parse error: Cannot construct instance of `com.sony.sie.kamaji.search.universal.model.openapi.SearchDomain`, problem: Unexpected value 'ConceptGameMobileApp'; nested exception is com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `com.sony.sie.kamaji.search.universal.model.openapi.SearchDomain`, problem: Unexpected value 'ConceptGameMobileApp'\n at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 59] (through reference chain: com.sony.sie.kamaji.search.universal.model.openapi.UniversalSearchRequest[\"domainRequests\"]->java.util.ArrayList[0]->com.sony.sie.kamaji.search.universal.model.openapi.SearchDomainRequest[\"domain\"])",
        "reason": "invalid_parameter",
        "source": "api"
    }
}

all I tried was this:

search_obj = psnawp.search()
title_id_api = search_obj.get_title_id(title_name=trophy_title.title_name) 

glebmiller avatar Jan 29 '24 19:01 glebmiller

I have the same problem with get_title_id() and universal_search()

radze90 avatar Feb 07 '24 14:02 radze90

same problem here

romeo143 avatar Feb 09 '24 23:02 romeo143

Looks like sony changed something on their end. I'll have to check what are the correct params for the new endpoint.

isFakeAccount avatar Feb 17 '24 03:02 isFakeAccount

Hi, @isFakeAccount , did you have any time to see this problem? or could you send the manual, where I can see what they use now instead "domain": "ConceptGameMobileApp"

jgavrus avatar Mar 25 '24 00:03 jgavrus

has there been any progress on this? im still getting the same error for the domain

platinumachievements avatar Apr 25 '24 21:04 platinumachievements

Hi, @isFakeAccount , did you have any time to see this problem? or could you send the manual, where I can see what they use now instead "domain": "ConceptGameMobileApp"

Seems like they have changed the endpoints. Now they are using GraphQL endpoints. This is how it looks like

https://m.np.playstation.com/api/graphql/v1/op?operationName=metGetContextSearchResults&variables=%7B%22searchTerm%22%3A%22GTA%22%2C%22searchContext%22%3A%22MobileUniversalSearchGame%22%2C%22displayTitleLocale%22%3A%22en-US%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22version%22%3A1%2C%22sha256Hash%22%3A%22a2fbc15433b37ca7bfcd7112f741735e13268f5e9ebd5ffce51b85acc126f41d%22%7D%7D

isFakeAccount avatar May 11 '24 08:05 isFakeAccount

Fixed in version 2.0.0

isFakeAccount avatar Jun 17 '24 04:06 isFakeAccount