Giter Club home page Giter Club logo

Comments (6)

Ninigi avatar Ninigi commented on July 21, 2024

@DavidVII I've come across this error before, iirc this is because hackney can not handle a nil value for a post/put body. I fixed that in recent commits, however I haven't been able to do a comprehensive test for those cases.

Can you test your usecase against the master branch? Setting up an application charge just for test cases is a PITA, so if you have everything set up already that would be hugely appreciated 🙏

from shopify.

DavidVII avatar DavidVII commented on July 21, 2024

Thanks, @Ninigi. I am in fact using the latest from the master branch. Is there any particular area of the codebase that comes to mind? I don't mind looking into this as well since I do have an app setup ATM. Let me know.

from shopify.

Ninigi avatar Ninigi commented on July 21, 2024

@DavidVII I just pushed the post body fix (30 mins ago?), so maybe you could update and try again? 😆

from shopify.

DavidVII avatar DavidVII commented on July 21, 2024

@Ninigi haha my bad. Ya, I'll try again. Thanks!

from shopify.

Ninigi avatar Ninigi commented on July 21, 2024

@DavidVII this is the culprit (at least that's my guess for now)

from shopify.

DavidVII avatar DavidVII commented on July 21, 2024

@Ninigi yep looks like that's it. I was able to activate a charge. Interestingly enough, I got an error when deleting a charge. It did, in fact, cancel the charge, but it returned this:

 no case clause matching: {:error, :invalid, 0}
    (shopify) lib/shopify/response.ex:24: Shopify.Response.parse_json/2
    (shopify) lib/shopify/response.ex:12: Shopify.Response.new/3

That probably warrants a separate issue. I'll test it out and see if it's valid.

Thanks for your help, @Ninigi! I'll close this one out for now since it appears that 77fd3aa addresses this issue.

from shopify.

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.