amazon-archives / aws-sdk-unity

ARCHIVED: The aws sdk for unity is now distributed as a part of aws sdk for dotnet:
https://github.com/aws/aws-sdk-net
Other
105 stars 43 forks source link

DynamoDB - DynamoDBContext CreateBatchWrite - Exception: Network on game thread #88

Closed andreineacsu closed 8 years ago

andreineacsu commented 9 years ago

Hello,

We are using DynamoDB in about Unity3D game. At this moment, we are getting an exception (Exception: Network on game thread) when calling DynamoDBContext's CreateBatchWrite method. Please find attached a screenshot containing all other Exceptions caused by the first one (Exception: Network on game thread). The exception seams to be thrown on the BatchWrite constructor method on this line of code: "Table table = Context.GetTargetTable(StorageConfig, Config);".

We managed to avoid this exception by calling "GetTable" immediately after our game loads, long before we need to call DynamoDBContext's CreateBatchWrite.

Thank you, Andrei

karthiksaligrama commented 9 years ago

This is a known problem. We are working on it. You can also avoid it by using Threadpool thread to make dynamodb calls.

andreineacsu commented 9 years ago

Can you please let me know when a new version fixing this issue might be available? Thanks!

karthiksaligrama commented 9 years ago

at this moment i don't have a date for the fix. I'll update here as soon as i have a fix

madangosain commented 8 years ago

I am also seeing this error using high level object persistence model (latest AWS-unity sdk with unity 5.2 mac-os) when calling:

DynamoDBContext.QueryAsync(QueryOperationConfig)

Alternatively if I call DynamoDBContext.Client.QueryAsync(QueryRequest), directly, it works okay.

Do we have any update on this issue? Otherwise can you please elaborate on recommended workaround?

Thanks

karthiksaligrama commented 8 years ago

Fixed in version 3 for aws sdk for unity. If you continue to face problems please raise a new issue on our dotnet sdk repository