GithubHelp home page GithubHelp logo

Comments (11)

rohandubal avatar rohandubal commented on August 15, 2024 2

Thanks for letting us know about this! We will update it to fail silently in this case or surface it in the error callback.

from aws-mobile-appsync-sdk-ios.

michaeleconomy avatar michaeleconomy commented on August 15, 2024

i tried disabling disk caching and it no longer crashes (setting databaseURL to nil in my appsyncclient).

from aws-mobile-appsync-sdk-ios.

rohandubal avatar rohandubal commented on August 15, 2024

Hi @michaeleconomy

Thanks for reporting this. I will investigate this and get back to you.

Thanks,
Rohan

from aws-mobile-appsync-sdk-ios.

rohandubal avatar rohandubal commented on August 15, 2024

I don't see anything wrong with your mutation code. Could you please show how you initialized the database for appsync client? Does switching to a new database help?

from aws-mobile-appsync-sdk-ios.

michaeleconomy avatar michaeleconomy commented on August 15, 2024

I switched identity pools - that might cause issues?

the database code was like this:
let databaseURL = URL(fileURLWithPath:NSTemporaryDirectory()).appendingPathComponent("appsync-local-db")

but i set the whole thing to nil and that fixed it

from aws-mobile-appsync-sdk-ios.

rohandubal avatar rohandubal commented on August 15, 2024

Setting it to nil will make the SDK use the in-memory database instead of a persistent store. The local store and cognito identity would be unrelated. One possibility is that if you are using temporary directory and the file got cleaned up by OS. You could use the NSDocumentsDirectory instead to avoid that issue.

from aws-mobile-appsync-sdk-ios.

michaeleconomy avatar michaeleconomy commented on August 15, 2024

Ok, I was going off of the documentation here:
https://docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app-ios.html

FWIW, I feel like this still shouldn't crash the application though.

I'm happy to continue to leave it set to nil (request caching isn't very worthwhile in my use case), but figured you guys would want to know about this issue.

from aws-mobile-appsync-sdk-ios.

wallowabk avatar wallowabk commented on August 15, 2024

I'm also seeing this. It is a mutation with no arguments that's causing the crash.

from aws-mobile-appsync-sdk-ios.

frankmuellr avatar frankmuellr commented on August 15, 2024

@rohandubal Didn't we release a fix for this issue? If so, can you update the issue?

from aws-mobile-appsync-sdk-ios.

palpatim avatar palpatim commented on August 15, 2024

I have a test that replicates this and am working on a fix for an upcoming release.

from aws-mobile-appsync-sdk-ios.

palpatim avatar palpatim commented on August 15, 2024

This is released in 2.10.0

from aws-mobile-appsync-sdk-ios.

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.