question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Autocomplete Error

See original GitHub issue

Hello, I just copied the files from my project on a new server. Somehow my page-link is not working anymore… I could see that i always receive a 500 for the autocomplete. but my node console is not showing any errors. I havent found a way to log the “real” error code in the console…

The schema of my custom widget is the following:

module.exports = {
  extend: 'apostrophe-widgets',
  label: 'Add new Reference',
  addFields: [
    {
      name: '_page',
      type: 'joinByOne',
      withType: 'apostrophe-page',
      label: 'Page',
      required: true,
      idField: 'pageId'
    },
    {
      name: 'image',
      type: 'attachment',
      label: 'Image',
      required: true,
    },
  ],
};

Im running on debian 8 and node 7.4 Thank you.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
boutellcommented, Jan 30, 2017

This fix has been published. You can stop hacking it up on your end. (: Let me know if this resolves it for your use case. Thanks!

On Mon, Jan 30, 2017 at 11:26 AM, Tom Boutell tom@punkave.com wrote:

Hmm, actually in tracing through the code I see how this problem can happen. I am publishing a fix.

On Mon, Jan 30, 2017 at 11:14 AM, Tom Boutell tom@punkave.com wrote:

Chris, this code is working fine in our projects. Can you reproduce this in the sandbox, or a fork of the sandbox? It sounds like you have an old version of the apostrophe module on your new server, or something like that.

Closing this issue for now as we don’t have any information on how to duplicate the error, but glad to reopen if you can provide us with steps that duplicate it.

On Mon, Jan 30, 2017 at 6:02 AM, Chris notifications@github.com wrote:

I found the code that causes the error (same file line 132) var cursor = self.find(req, {}, {}).sort(‘search’);

So the sort(‘search’) is causing the problems. Unfortunately Im unable to locate the definition of that function.

Hopefully someone whos inside this project will take a look into that. For now I will just comment it out.

orgertot out 🚀

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/punkave/apostrophe/issues/807#issuecomment-276034556, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9fYD0dAjO9FwP7Q81Cei_7jL0dITkks5rXcNigaJpZM4LvwAF .

*THOMAS BOUTELL, *SUPPORT LEAD P’UNK AVENUE | (215) 755-1330 | punkave.com

*THOMAS BOUTELL, *SUPPORT LEAD P’UNK AVENUE | (215) 755-1330 | punkave.com

*THOMAS BOUTELL, *SUPPORT LEAD P’UNK AVENUE | (215) 755-1330 | punkave.com

0reactions
cliedeltcommented, Jan 31, 2017

Thanks. That fixed it 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Autocomplete error with 2 required options #729 - GitHub
I received this traceback error given from my Python terminal when having two required options. The following error only shows once I move...
Read more >
Solved: Bug report: Errors function autocomplete fails wit...
A workaround for this is to use a collection to replace the errors () function with the items property in your second screen....
Read more >
How can I show autocomplete errors - Stack Overflow
I'm working with React Hook Forms. <Controller control={control} rules={{ required: "Required" }} error={errors.state ?
Read more >
Bug: Autocomplete problem - possibly due to apostrophe in ...
I have the same problem, but the apostrophe seems not to be the cause. E.g. try to find "Goldene Krone, Schustergasse, Darmstadt, Deutschland"...
Read more >
AutoComplete error/crash/bug/pain/help in Kendo UI for jQuery
Hello, I am using the autocomplete widget from the kendo ui web library and experiencing a reproduceable bug. The client javascript error ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found