Scanning Amazon Games error

Issue #9216 duplicate
martin pope created an issue

Launchbox Version: 13.16-beta-3

Windows Version (not entirely sure what this is asking for so I’ll list all possible relevant info):
Edition: Windows 10 Home. Version: 22H2. System type: 64-bit operating system, x64-based processor. OS Build: 19045.4780

Error Frequency: If logged in with Amazon Games, error occurs on start up every time (during automatic scan of storefront games). Also occurs when manually scanning storefront games having logged in with Amazon Games after the initial scan.

Steps to reproduce: As above, simply log in with Amazon Games then scan storefronts for games or exit Launchbox and open the program again and wait for it to scan storefronts (if set to scan on startup). The error message then shows.

Complete error that shows:

“Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

App: LaunchBox
Version: 13.16-beta-3
Theme: Default
Type: Newtonsoft.Json.JsonReaderException
Site: Boolean ParseValue()
Source: Newtonsoft.Json

at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Unbroken.LaunchBox.Windows.Integrations.Amazon.AmazonAccount.GetAccountEntitlements()
at CallbackModelProperty.AssetReflectiveList(CallbackModelProperty )
at Unbroken.LaunchBox.Windows.Integrations.Amazon.AmazonGames.GetLibraryGames()
at Unbroken.LaunchBox.Windows.Desktop.Processes.Scanning.ScanForGames(Boolean& hasExpiredCredentials)
at InstanceConnection.PublishInvalidSerializer(Boolean& hasExpiredCredentials, InstanceConnection )
at Unbroken.Common.PolicyRequest.IncludeTransactionIterator()
at Unbroken.LaunchBox.Windows.Threading.<>c__DisplayClass0_0.NewCommonObserver(Object )
at Unbroken.LaunchBox.Windows.Threading.<>c__DisplayClass0_0.UpdateAbstractDic()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Recent Log:

20:46:46 Exception”

Extra comment: This occurs when the setting is to “all games” which requires login. I found I could resolve the issue by opening \Launchbox\Data\Settings.xml in notepad. By deleting the line “<AmazonAutoImport>AllGames</AmazonAutoImport>” then it no longer scanned for Amazon Games. I then stayed logged in where linked to Amazon Games within Launchbox, but switched to “Installed” only. And now it seems to work fine (the code in the Settings file just switches from “AllGames” to “Installed” so I could’ve just changed it to that). I just can’t import any games that aren’t installed now. I hope that all makes sense.

Also I don’t know what priority it should be set as so I’ve kept it at major by default.

Comments (1)

  1. Log in to comment