GithubHelp home page GithubHelp logo

Comments (15)

gardner avatar gardner commented on July 28, 2024

I emailed the CSV file.

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

@gardner Please send me a copy too.

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

i have a feeling that @content_type="application/vnd.ms-excel" may be the issue

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

i'm distrustful of microsoft anything lol

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

Uh, let's refactor this after OS//OS.

I tried an upload of the first 50 lines and it worked, but took a very long time.

The import spawns over 800 requests that wait a very long time to connect. With the full file I got a lot of 401 Unauthorized on many requests, which is what is causing the problem. I'm not sure why this is happening, but it looks like auth is timing out at a certain point.

screenshot from 2016-08-17 18-16-24

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

@gardner

i don't actually think there is a bug -- i think this is a user error

i'm looking back at the logs now and i'm seeing

Aug 14 17:25:31 cobudget-beta-api heroku/router:  at=info method=POST path="/api/v1/memberships/upload_review?group_id=255" host=cobudget-beta-api.herokuapp.com request_id=2b2fab02-3ed8-4aaa-b79d-2fd97f2d2a98 fwd="103.23.18.14" dyno=web.1 connect=1ms service=338ms status=422 bytes=834 
Aug 14 17:25:31 cobudget-beta-api app/web.1:  Started POST "/api/v1/memberships/upload_review?group_id=255" for 103.23.18.14 at 2016-08-15 00:25:31 +0000 
Aug 14 17:25:31 cobudget-beta-api app/web.1:  Processing by MembershipsController#upload_review as JSON 
Aug 14 17:25:31 cobudget-beta-api app/web.1:    Parameters: {"csv"=>#<ActionDispatch::Http::UploadedFile:0x007f8c3829a920 @tempfile=#<Tempfile:/tmp/RackMultipart20160815-12-g7witx.csv>, @original_filename="report-2016-08-15T1102.csv", @content_type="application/vnd.ms-excel", @headers="Content-Disposition: form-data; name=\"csv\"; filename=\"report-2016-08-15T1102.csv\"\r\nContent-Type: application/vnd.ms-excel\r\n">, "group_id"=>"255"} 
Aug 14 17:25:31 cobudget-beta-api app/web.1:  Can't verify CSRF token authenticity 
Aug 14 17:25:31 cobudget-beta-api app/web.1:  Completed 422 Unprocessable Entity in 107ms (Views: 0.4ms | ActiveRecord: 11.0ms) 

which means that the csv file is being submitted to the wrong API endpoint -- it should be submitted to /allocations/upload_review?group_id=255

i think y'all might be trying to do bulk allocations via csv on the invite_members page -- try http://cobudget.co/#/groups/255/manage_funds

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

My errors are a result of uploading to the allocation endpoint on my dev machine.

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

@data-doge You might have already come across the problem spot?

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

@kiesia

yep certainly agree it needs refactoring, but still -- the huge csv upload works for me locally, and on production

it takes a long time in both cases, but works

currently not sure what to do here

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

Well if it works then what are we talking about? 😄

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

you're getting those 401s tho :/

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

Ah forget the 401s, that turns out to be an issue with my dev environment. Running node simply as node . fixed the issue.

from cobudget-api.

kiesia avatar kiesia commented on July 28, 2024

PR to resolve capitalised emails

from cobudget-api.

gardner avatar gardner commented on July 28, 2024

Charley Davenport reported this via slack:

Hi - I’ve run into a problem with a .csv file upload to update funds for Foundation. I used to be able to include multiple line items that included the same email consecutively. like:

7.62 [email protected]
6.56 [email protected]

But now when I upload it’s giving me the error that I have duplicate email addresses. I’ll resolve this now by simply combining the amounts from multiple lines for the same address into a single line, but I didn’t have to used to do this, and it was nice to not having to worry about multiple lines with different amounts for the same account. Thanks!

from cobudget-api.

data-doge avatar data-doge commented on July 28, 2024

thx @gardner for the notification -- i'm going to post it in a separate issue #154, and close this one.

as far as i can see, with respect to the original issue raised, there's no bug here -- only expected behavior

from cobudget-api.

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.