Comments (15)
I emailed the CSV file.
from cobudget-api.
@gardner Please send me a copy too.
from cobudget-api.
i have a feeling that @content_type="application/vnd.ms-excel"
may be the issue
from cobudget-api.
i'm distrustful of microsoft anything lol
from cobudget-api.
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.
from cobudget-api.
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.
My errors are a result of uploading to the allocation endpoint on my dev machine.
from cobudget-api.
@data-doge You might have already come across the problem spot?
from cobudget-api.
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.
Well if it works then what are we talking about?
from cobudget-api.
you're getting those 401s tho :/
from cobudget-api.
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.
PR to resolve capitalised emails
from cobudget-api.
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.
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)
- Blanked comments HOT 2
- improve performance for group page HOT 5
- 500 error returned by analytics endpoint HOT 1
- MembershipsController#index very slow in large (+200 members) groups HOT 2
- Can we reduce the number of times Group is serialized? HOT 1
- combine duplicate emails and their allocation amounts on csv upload HOT 1
- error! you have no active memberships
- Make sure that `gem install redcarpet -v '3.4.0'` succeeds before bundling. HOT 1
- PUT /users/:user_id
- Rounds have option for user-proposed buckets
- POST /auth/log_in.json errors with 500 status HOT 1
- add development usage of mailcatcher to README
- Enabling cobudget test & dev HOT 1
- Story : Admin can notify contributors at round milestones. HOT 7
- Default passwords should be more prominent HOT 2
- API documentation very needed HOT 5
- Failing to create new project
- [beta] email notifications from comments on same bucket have different subjects HOT 1
- Gemfile contains duplicate entries for airbrake HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobudget-api.