syndesisio / syndesis-rest

The API for Syndesis - a flexible, customizable, cloud-hosted platform that provides core integration capabilities as a service. It leverages Red Hat's existing product architecture using OpenShift Online/Dedicated and Fuse Integration Services.
https://syndesis-staging.b6ff.rh-idev.openshiftapps.com/api/v1/
Apache License 2.0
6 stars 17 forks source link

Getting back HTTP 500 when doing a PUT to update integration desiredStatus #266

Closed gashcrumb closed 7 years ago

gashcrumb commented 7 years ago

Doing a PUT with the integration object to:

https://ipaas-staging.b6ff.rh-idev.openshiftapps.com/api/v1/integrations/3

in this case I want to set desiredStatus to Activated.

gashcrumb commented 7 years ago

Error message:

{timestamp: 1490904216076, status: 500, error: "Internal Server Error",…}
error
:
"Internal Server Error"
exception
:
"org.jboss.resteasy.spi.UnhandledException"
message
:
"javax.persistence.EntityNotFoundException: Can not find integration with id 3"
path
:
"/api/v1/integrations/3"
status
:
500
timestamp
:
1490904216076
Name
KurtStam commented 7 years ago

@gashcrumb Well that sucks, I'm assuming you got the integration from GET on /api/v1/integrations/3? So you know it's there?

gashcrumb commented 7 years ago

well, it's not there now, I managed to delete it via the UI so that's interesting...

KurtStam commented 7 years ago

I refreshed the DB, the example data only has 2 integrations. so the next one you create would be 3. Maybe staging refreshed underneath you?

gashcrumb commented 7 years ago

Yeah, seems to maybe be a sporadic thing, maybe it's an openshift problem?

KurtStam commented 7 years ago

OK leaving this open for now then. Please let us know if it happens again.

KurtStam commented 7 years ago

Closing as it hasn't happened since.