-
Notifications
You must be signed in to change notification settings - Fork 287
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
Error: github.com/project-flogo/legacybridge] - interface conversion: interface {} is nil, not string #515
Comments
Can you share the error logs once again? Thanks. |
sure, attached |
just noticed there is another error too: InvalidEndpointURL: invalid endpoint uri |
@neethuabacker the error, it seems to me that, it's coming from activity. |
@skothari-tibco there is a localLocation in the JSON 😉 https://github.com/retgits/flogo-components/blob/master/activity/amazons3/activity.json#L48 |
I meant in the flogo json. |
Ah okay 😄 just out of curiosity, does the legacybridge try to parse every field even if they're optional? |
yes, i have same question, was typing it :) why for optional fields I have to provide values.. |
also, just fyi. i got that {} nil error on a timer where I did not give a frequency interval too, when frequency is optional. something is not right. ( then i changed my code to http trigger to get past it ) |
I think it's just with the old contributions. The legacy bridge passes the context with the values provided in the JSON to the legacy activity.If there's no value associated with it, it passes With the new contributions if it's optional, it's fine if you don't have it. |
The old version (0.5.x) would return nil if an optional param was not specified, so technically the behavior is the same... So the coerce to a string in the activity would be causing an issue... Even the tests for the activity set |
@skothari-tibco as for your question about adding the s3 activity to the |
@neethuabacker for the timer, were you using the new timer trigger? That is, this one: https://github.com/project-flogo/contrib/tree/master/trigger/timer |
@mellistibco yeah, I'd gladly contribute mine :) which repo should I create a PR for? |
no, I am using the timer that came with project flogo, did not install any other timer |
Current behavior (how does the issue manifest):
I am working on open source Amazon S3 connector which throws me an error when connecting to S3 that says : github.com/project-flogo/legacybridge] - interface conversion: interface {} is nil, not string
I raised a case against the connector, but I am told that its related to legacybridge changes.
Please see this issue: retgits/flogo-components#15
Expected behavior:
Minimal steps to reproduce the problem (not required if feature enhancement):
Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):
Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X
Flogo v0.9.2
Additional information you deem important (e.g. issue happens only occasionally):
retgits/flogo-components#15 has all additional information including app json file
The text was updated successfully, but these errors were encountered: