Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed - Network Error" when exporting Contacts #2695

Closed
estellecomment opened this issue Sep 1, 2016 · 16 comments
Closed

"Failed - Network Error" when exporting Contacts #2695

estellecomment opened this issue Sep 1, 2016 · 16 comments
Labels
Type: Bug Fix something that isn't working as intended Won't fix: Ancient Too old to investigate

Comments

@estellecomment
Copy link
Contributor

In Chrome.
screen shot 2016-09-01 at 11 00 03

I can export reports just fine.
No console errors, no API errors.
The file is called download, instead of contacts-<timestamp>.json when it's working.

I'm suspecting the getHref(res), in ajaxDownload module, with res = array[998], is too big to run. When I reduce it to array[5] it goes through.

@SCdF
Copy link
Contributor

SCdF commented Sep 6, 2016

@estellecomment would you say this is the same as #2694 ? As in, this is occurring because you have a very large data set on a feature that otherwise works? I think this should have the same priority as #2694: i.e. not hugely important unless a client is having trouble.

@estellecomment
Copy link
Contributor Author

It's JSON instead of XML, but otherwise yes.

@SCdF SCdF removed the 1 - Scheduled label Sep 7, 2016
@SCdF SCdF removed this from the September 5th - September 19th milestone Sep 7, 2016
@SCdF
Copy link
Contributor

SCdF commented Sep 7, 2016

OK cool I dropped it out of the sprint.

@nice-snek
Copy link

hi frand @abbyad, please triage before the end of this sprint.

--..,_                        _,.--.
       ''.'.                .''__ o  ';__.
          '.'.            .'.''  '---''  '
            '.''--....--''.'
              ''--....--''

@abbyad
Copy link
Contributor

abbyad commented May 11, 2017

@estellecomment has this been resolved by #3107 or #3109?

@estellecomment
Copy link
Contributor Author

Nope, still happening. I'm leaving it open, I'm not sure the feature is being used, but it's definitely broken.

Now I get this api error :

Server error:
 { code: 503,
  message: 
   { Error: connect ECONNREFUSED 127.0.0.1:5985
       at Object.exports._errnoException (util.js:1023:11)
       at exports._exceptionWithHostPort (util.js:1046:20)
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: '127.0.0.1',
     port: 5985 } }

@SCdF
Copy link
Contributor

SCdF commented May 12, 2017

@estellecomment port 5985 is lucene. You probably aren't running lucene, and apparently it's required.

@estellecomment
Copy link
Contributor Author

o_O
Thanks for the fact-checking!

With lucene running, the bug is still happening, and error from api is

Server error:
 { code: 503, message: { code: 500 } }

Database log says

[info] [<0.3011.0>] 127.0.0.1 - - GET /_session 200
[info] [<0.2867.0>] 127.0.0.1 - - GET /medic/ 401

(401??)
With admin user, locally.

@SCdF
Copy link
Contributor

SCdF commented May 12, 2017

@estellecomment I don't want to sound like a magician, but have you tried running it twice?

@estellecomment
Copy link
Contributor Author

@estellecomment
Copy link
Contributor Author

I just did, also with one eye closed, still happening. Anything specific you're looking for? :)

@SCdF
Copy link
Contributor

SCdF commented May 12, 2017

Just checking. I've found when I setup lucene locally it always fails the first time.

@medic-bot
Copy link

Hi @vimemo,

This ticket has not been touched in 90 days. Is it still relevant?

(See triaging old issues for more detail)

@medic-bot medic-bot added the Status: Blocked waiting for triage Blocked waiting for prioritisation label Jan 31, 2018
@vimemo
Copy link
Contributor

vimemo commented Feb 7, 2018

This is still an issue. It has to do with sorting by name.
For some reason, orderBy: 'name', returns the error described before:
Server error:
{ code: 503, message: { code: 500 } }

The json is downloaded correctly when removing the sorting/orderBy.
Do we need an index for lucene to work?
Do we need a different syntax?

@vimemo vimemo added Type: Bug Fix something that isn't working as intended Priority: 1 - High Blocks the next release. and removed Status: Blocked waiting for triage Blocked waiting for prioritisation labels Feb 7, 2018
@garethbowen
Copy link
Member

@SCdF Is this related to your CSV export work?

@SCdF
Copy link
Contributor

SCdF commented Feb 8, 2018

Good catch, yeah! This will be "fixed" by it being reimplemented in #3594 . I'm going to close this as a wontfix, since the Lucene export api will be deprecated in the work I'm doing.

@SCdF SCdF closed this as completed Feb 8, 2018
@SCdF SCdF unassigned vimemo Feb 8, 2018
@SCdF SCdF added Won't fix: Ancient Too old to investigate and removed Priority: 1 - High Blocks the next release. Status: 1 - Triaged labels Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended Won't fix: Ancient Too old to investigate
Projects
None yet
Development

No branches or pull requests

7 participants