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 Task Error #239

Open
apalooza1 opened this issue Jun 6, 2018 · 9 comments
Open

Sync Task Error #239

apalooza1 opened this issue Jun 6, 2018 · 9 comments

Comments

@apalooza1
Copy link

Following the guide and setting up my First Sync Task, I get the following error after executing. Any thoughts?

Id | 21
Eventable | Task 2
Action | Error
User |  
Source | Task: Github Repo Sync
Details | Could not parse System Metadata for users/organizations, skipping

@sbehrens
Copy link
Contributor

sbehrens commented Jun 6, 2018

Did the task still run? That may be a bad debug/error statement. Did you set a user and/or org in the task configuration?

@ahoernecke
Copy link
Contributor

It looks like that error should appear if you've selected a system metadata key for list of organizations/users but the value can't be parsed. Do you have something selected for the "Organization/Users from Metadata" option?

@apalooza1
Copy link
Author

Nothing was selected under org/user. Similar to the guide.

image

@apalooza1
Copy link
Author

Running with 'Netflix', generated error Id 39,

An error occurred in Github Repo Sync. Error: GET https://api.github.com/orgs/Netlfix/repos: 404 - Not Found

@sbehrens
Copy link
Contributor

sbehrens commented Jun 6, 2018

You need to specify a github org to sync (exp. Netflix) if you are planning on leveraging that task. I'll update the screenshot to reflect that. Can you try adding in an Org and let us know if that resolves the issue?

-Scott

@apalooza1
Copy link
Author

apalooza1 commented Jun 6, 2018

@sbehrens Running with 'Netflix', generated error:

An error occurred in Github Repo Sync. Error: GET https://api.github.com/orgs/Netlfix/repos: 404 - Not Found

@sbehrens
Copy link
Contributor

sbehrens commented Jun 6, 2018

You spelled Netflix wrong.

@apalooza1
Copy link
Author

That would do it...can't believe I did not catch that.

The task ran and generated results.
However it also threw this same error.

Error| "Could not parse System Metadata for users/organizations, skipping"

@sbehrens
Copy link
Contributor

sbehrens commented Jun 6, 2018

Sounds good, looks like that error message should be a warning or informational. If you feel like submitting a PR to fix that, take a look at:
https://github.com/Netflix/Scumblr/blob/master/lib/scumblr_tasks/security/github_analyzer.rb

And what line that exception is being thrown on, most likely the method create_event("string", "Error") can be replaced with create_event("string", "Warn")

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

No branches or pull requests

3 participants