Mock socket hang up 500


#1

Hi I got a 500 response after trying to mock my POST method, can someone help me ??

Request - POST METHOD

http://mocksvc.mulesoft.com/mocks/1d8cd8fb-b7d6-4fe5-8946-49b75a765397 /measurement-scales

{
“measurementScale”: {
“id”: “9e64855f4762a94c894a9c50cc008659”,
“rev”: “1-52bda99669fecdb1399e224fb87657e6”,
“type”: “measurement-scale”,
“name”: “As Vezes”,
“status”: “active”,
“order”: 1
}
}

Response

Response
Response
Request URL
http://mocksvc.mulesoft.com/mocks/1d8cd8fb-b7d6-4fe5-8946-49b75a765397/measurement-scales
Status
500
Headers
connection: keep-alive
content-length: 14
date: Sat, 13 Sep 2014 17:59:08 GMT
server: nginx

Body

socket hang up

RAML

/measurement-scales:
type:
collection:
exampleCollectionResponse: !include measurement-scales-response.sample
exampleItemRequest: !include measurement-scale-response.sample
exampleItemResponse: !include measurement-scale-response.sample
get:
queryParameters:
name:
description: filter by name
example: ?name=rafael
/{id}:
type:
member:
exampleItemRequest: !include measurement-scale-response.sample
exampleItemResponse: !include measurement-scale-response.sample

JSON SCHEMA

{
"$schema": “http://json-schema.org/draft-03/schema#”,
“id”: “measurementScaleRequest”,
“title”: “Measurement Scales Request”,
“description”: “The canonical measurement scales request representation.”,
“type”: “object”,
“properties”: {
“measurementScale”: {
"$ref": “http://www.jzconsultoria.com.br/feedback-canvas/measurement-scale-canonical.json#”,
“required”: true
}
},
“additionalProperties”: false
}

JSON SAMPLE

{
“measurementScale”: {
“id”: “9e64855f4762a94c894a9c50cc008659”,
“rev”: “1-52bda99669fecdb1399e224fb87657e6”,
“type”: “measurement-scale”,
“name”: “As Vezes”,
“status”: “active”,
“order”: 1
}
}

Software Used to validate the schema

https://json-schema-validator.herokuapp.com/

Regards,
Rafael Bueno


#2

Hello @raf_bueno

I had the same error, and investigation showed that my schema was incorrectly structured. When I fixed the schema, the error went away. This may have nothing to do with your problem, but just in case, you may want to have a look at my post.


#3

@scordatura I already saw your post, but my schema is valid, I already test using the json schema validator :frowning: https://json-schema-validator.herokuapp.com/


#4

@usarid and @nohorbee, can you guys help me ? I saw you guys helped @scordatura, can you guys help me ?


#5

Nothing yet :frowning:


#6

Hi @raf_bueno, let me contact someone who can help you. No worries :wink:


#7

Wow, @raf_bueno apologies on the late reply, can you please share the full RAML (or as much as you are willing to share, that still compiles and still generates a 500?) in a gist so that I can see what may be wrong with the mocking service?

Thanks.


#8

First off all many thanks @christian_vogel and @damipoo. Here is my complete RAML let me know if you guys know whats is wrong on my raml file. http://www.filedropper.com/api2


#9

@christian_vogel and @damipoo any news here ? We have any kind of solution ?