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

Sync error in log with 0 elements #585

Closed
jamealg opened this issue Aug 8, 2019 · 1 comment
Closed

Sync error in log with 0 elements #585

jamealg opened this issue Aug 8, 2019 · 1 comment
Labels

Comments

@jamealg
Copy link

jamealg commented Aug 8, 2019

Description

This isn't a breaking issue but the error message did throw me off. I have a feed that runs every minute and only includes elements that are newly created or updated. Sometimes there are 0 elements returned. In that case I see this error in my logs:

Most Recent Sync: Starting processing of node #1
↳ Most Recent Sync: Match existing element with data {"blueframeId":""}.
↳ Most Recent Sync: Unable to match an existing element. Have you set a unique identifier for ["blueframeId"]? Make sure you are also mapping this in your feed and it has a value. - Element.php: 126.

There are 0 nodes to process so there shouldn't be a "node #1" to process. The error message doesn't make sense.

It appears to function normally when there are feed items to process.

Steps to reproduce

  1. Create a JSON feed that looks like this:
{
"paginationUrl": null,
"broadcasts": []
}
  1. Create feed
    Element type: entry
    Import Strategy: Create & Update

  2. Run feed via direct feed URL

Additional info

  • Plugin version: 4.1.1
  • Craft version: 3.2.8
@brandonkelly
Copy link
Member

We just released Feed Me 4.3.0, which clears out all log messages when there are no items to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants