apicurio-studio icon indicating copy to clipboard operation
apicurio-studio copied to clipboard

Publishing Spec to Github fails

Open lhuria94 opened this issue 2 years ago • 7 comments

Hi Team,

Thanks for the amazing tool. We are trying to publish the spec manually via APIcurio "Publish" action. Screenshot 2022-07-06 at 11 28 05 AM

Although being able to link GitHub account successfully, but click on publishing always throw an error: Screenshot-2022-06-29-at-4-10-01-PM-png-1123×316-

Does this work in a different way? Also, wanted to check if there is a way to automate it.

lhuria94 avatar Jul 06 '22 06:07 lhuria94

Are you using the online version of Apicurio Studio or have you deployed it locally in some way?

As for automation - everything you can do in the UI has a corresponding REST API endpoint on the backend for automation. We currently don't have any triggers/events though. So there's no way to e.g. automatically sync between Studio and GitHub other than by implementing some sort of polling (e.g. a cron job that polls for new versions of an API and then automatically pushes to GH).

EricWittmann avatar Jul 08 '22 17:07 EricWittmann

Nevermind, I just tried this on https://studio.apicur.io and was able to reproduce your same issue:

image

I wasn't aware this was broken and will need to look into it.

EricWittmann avatar Jul 08 '22 17:07 EricWittmann

Ah OK I have figured out the problem. I'm guessing you chose "YAML" format when trying to publish. Right now the conversion to YAML is broken. For more info go here:

https://github.com/Apicurio/apicurio-studio/issues/1925

This will be fixed in the next release.

EricWittmann avatar Jul 08 '22 17:07 EricWittmann

If you can confirm that you can successfully Publish your API in JSON format that would be helpful. We could close this issue as a duplicate.

EricWittmann avatar Jul 08 '22 17:07 EricWittmann

Yes, thanks for looking into this. Publishing API in JSON works fine.

Do we generally have a timeline to fix YAML one, like when is the next release planned?

lhuria94 avatar Jul 11 '22 04:07 lhuria94

We just need to do final testing of the migration from Thorntail to Quarkus. It's taking longer than normal due to summer vacations on the team. :)

Once everyone is back in action we'll get things fixed. But it might not be until the end of August or even early September. :(

EricWittmann avatar Aug 10 '22 19:08 EricWittmann

I have also the same problem, so I am waiting for the next release.

AraConnect avatar Aug 12 '22 07:08 AraConnect

Hoping to get a release done next week. Thank you for your patience.

Closing as a duplicate of https://github.com/Apicurio/apicurio-studio/issues/1925

EricWittmann avatar Aug 16 '22 15:08 EricWittmann