Giter Site home page Giter Site logo

Comments (3)

interstateone avatar interstateone commented on August 11, 2024

I've ran into this same issue and have been troubleshooting for a bit. I can't seem to write a failing test, but using some existing production objects that have files associated with them will cause this to happen. When fetched (curl or Parse::Query) a "name" field is returned. When the Parse::File is initiated, the parse_filename variable is lost/not set and subsequently it can't be saved. Strangely, if I monkey-patch an identical File init method when testing with the production objects it works... which also prevents me from seeing what may be happening inside. I'm not much of a Ruby dev so I don't have the insight to determine what would cause this.

Some details on the production objects: They've been uploaded with a filename using the iOS SDK (the iOS SDK allows creating a file without one). They also have a user pointer like above, however this didn't have an impact when trying to write a test.

from parse-ruby-client.

adelevie avatar adelevie commented on August 11, 2024

A friend of mine who sent me this problem originally found a simple workaround, which was to delete the file from the hash before making the request to Parse. Following the sample code I posted:

colleague.delete("photo")

Not the best, but I probably will not be able to fix this myself.

from parse-ruby-client.

ericcj avatar ericcj commented on August 11, 2024

this sounds like what i fixed on master in #74

from parse-ruby-client.

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.