Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an error when trying to add items to checkout #37

Open
sduval215 opened this issue Sep 25, 2018 · 4 comments
Open

Getting an error when trying to add items to checkout #37

sduval215 opened this issue Sep 25, 2018 · 4 comments

Comments

@sduval215
Copy link

Hey there! Great library. I'm getting this error when trying to add items to my cart.

screen shot 2018-09-25 at 12 48 04 pm

@thelight413
Copy link

sduval215, did you figure out a solution? I'm stuck on this too.

@jayhack
Copy link

jayhack commented May 14, 2019

@sduval215 , same issue - did you find a solution? or @thelight413 ?

Thanks!

@thelight413
Copy link

@jayhack, I was adding the line items incorrectly.Add this code before initializing graphClient in RNShopifyModule.java file

HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
   logging.setLevel(HttpLoggingInterceptor.Level.BODY);
   OkHttpClient client = new OkHttpClient.Builder()
           .addInterceptor(logging)
           .build();

And you will see request and response raw data in LogCat. It will give you the actual error you are getting from Shopify.

@amie-wilt
Copy link

amie-wilt commented Sep 6, 2019

In case anyone else comes across this I thought I'd post what my problem was. I was using a deprecated version of the mobile buy sdk:

pod "Mobile-Buy-SDK", '~> 2.0'

I added some logging to the Obj-C files and got this:

Domain=BUYShopifyErrorDomain Code=412 "(null)" UserInfo={errors={
    "version_date" =     (
                {
            code = blank;
            message = "can't be blank";
            options =             {
            };
        }
    );

Mentioned here: Shopify/mobile-buy-sdk-ios#857

The problem is when you upgrade to the latest, you'll come across the errors mentioned in #41 and #31, which is ultimately why I was using the deprecated version in the first place. I'm not sure of the fix but I'm going to follow the thread in #41 as it appears @ConSou might know what to do!

cc: @jayhack, @sduval215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants