Giter VIP home page Giter VIP logo

Comments (9)

tunnckoCore avatar tunnckoCore commented on May 18, 2024

Strange. It's not on L125, but okey. Can you give the full stack and use case example?

from hela.

 avatar commented on May 18, 2024

Occurs when:

  • There is no data in the request body.
  • Specified filesKey = false
  • Request multipart

from hela.

tunnckoCore avatar tunnckoCore commented on May 18, 2024

@isdenya thanks for the info. I'm working on next release locally.

from hela.

sedenardi avatar sedenardi commented on May 18, 2024

This same bug happens if you post an empty body with fieldsKey = false.
At line L115 (returns = cache.fields;) returns is set to undefined, so when you get to L125 (returns[filesKey] = cache.files;) you're assigning a field of an undefined object, and it breaks.

from hela.

tunnckoCore avatar tunnckoCore commented on May 18, 2024

@sedenardi good point.

from hela.

sedenardi avatar sedenardi commented on May 18, 2024

@tunnckoCore I think the main issue is that L87 this.request.body !== undefined fails because you're posting with an empty body. I usually use an empty body when implementing /Logout in my APIs, so I think this is a valid use case.

from hela.

tunnckoCore avatar tunnckoCore commented on May 18, 2024

Agreed. 👍

I'm trying to come to this as soon as possible, or at least to push my local things to new branch and to be able others to continue.

PRs are always welcome, i'm just too busy and i'm not using this package anywhere atm.

from hela.

sedenardi avatar sedenardi commented on May 18, 2024

@tunnckoCore Cool. I'll run my possible fix through a couple of different scenarios and make sure your tests don't break and submit a PR in the next few days.

from hela.

tunnckoCore avatar tunnckoCore commented on May 18, 2024

Yea, thanks. If you can easy fix it for current version it would be great. I'm open.

from hela.

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.