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

Unable to Upload Target Gem in COSMOS 5 #1386

Closed
Donny3000 opened this issue Oct 21, 2021 · 2 comments
Closed

Unable to Upload Target Gem in COSMOS 5 #1386

Donny3000 opened this issue Oct 21, 2021 · 2 comments
Labels
Milestone

Comments

@Donny3000
Copy link

Good Morning COSMOS Team,

I've been able to successfully install/build COSMOS 5 from master/main (616ad92) and start the application in the browser. So, I proceeded with the COSMOS 5 "Getting Started" tutorial. completing the "Getting Started" and "Interfacing with your Hardware" sections. Starting the "Building Your Plugin" section, I completed step one with the following output

image

However, when proceeding to upload the gem to COSMOS, I get the following 500 error

image

Does anyone know why I might be seeing this?

@ghost
Copy link

ghost commented Oct 21, 2021

I would open the devtools of your browser and look at the network tab find the response that is a status code of 400 or 500 and view the error. Check out this writeup on debugging cosmos #1334 (comment)

We are working to clean up errors and make sure we provide some good error messages so this should get better over time. When working with loading plugins Cosmos still need to solve the problem of how to load external gems. I would also take a look at #1354

I need to double check that we have this in the getting started pages but, if your plugin requires an external dependency you will need to update the cosmos gemspec file and rebuild the container.

An example of adding external gems to the cosmos/cosmos.gemspec file.

  s.add_runtime_dependency 'tzinfo-data', '~> 1'
+  s.add_runtime_dependency 'google-protobuf', '~> 3.17'
+  s.add_runtime_dependency 'protobuf'

@Donny3000
Copy link
Author

Thanks, @gerhardatball for the info! Looking at the development tools in chrome, I saw where my plugin.txt was malformed. Correcting that issue resolved my upload issue. Thanks again!

@ryanmelt ryanmelt modified the milestones: v3.0.1, questions Apr 29, 2022
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