raml - Cannot POST to Mule console mock service -
i have enabled mule mock service via api console. requests work fine, not post - gives 404; i'm testing through 'try it' console, api def. exists:
response request url http://mocksvc.mulesoft.com/mocks/87307809-5047-4f11-8376-f79b90612e8f/api/1.1/potentials/invoices status 404 headers connection: keep-alive content-length: 84 content-type: text/html date: thu, 27 nov 2014 09:57:26 gmt server: nginx vary: accept-encoding cannot post /mocks/87307809-5047-4f11-8376-f79b90612e8f/api/1.1/potentials/invoices
any known issues - or doing wrong?
update - getting 500 response:
the url looks dodgy, there's proxy involved; have switched off proxy in anypoint config.
remote address:107.23.223.75:443 request url:https://anypoint.mulesoft.com/apiplatform/proxy/http://mocksvc.mulesoft.com/mocks/4549e09f-5372-49a2-a025-1a779be1f8b0/api/1.0/potentials/invoices/by-group?calcs=sync request method:post status code:500 internal server error response headers view source connection:keep-alive date:sun, 22 mar 2015 09:13:16 gmt server:nginx transfer-encoding:chunked request headers view source accept:*/* accept-encoding:gzip, deflate accept-language:en-us,en;q=0.8 connection:keep-alive content-length:4051 content-type:application/json cookie:optimizelyenduserid=oeu1400511095000r0.22788078687153757; _biz_xdomaina=1; _biz_eventa=%5b1533429002%5d; km_ai=jg90g%2b1fhdcuqumo0lmojkbuk0q%3d; km_lv=x; __qca=p0-956406382-1408949189024; __cdrop=.4ne0r9.; ajs_anonymous_id=%228581a965-e03c-4f55-a16f-10463dc9137e%22; __utma=130558047.1044798684.1408703580.1416417421.1416579765.53; __utmz=130558047.1412919885.10.2.utmcsr=blogs.mulesoft.org|utmccn=(referral)|utmcmd=referral|utmcct=/release-anypoint-platform-api-2014-09/; __insp_slim=1417754555608; __insp_nv=true; __insp_ref=d; __insp_norec_sess=true; __utma=1.1044798684.1408703580.1424347974.1424358552.22; __utmz=1.1423198101.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=ga1.2.1044798684.1408703580; __unam=454cd6c-14ba063e172-7fff1062-3; optimizelysegments=%7b%22301426924%22%3a%22false%22%2c%22301577736%22%3a%22campaign%22%2c%22301577737%22%3a%22gc%22%7d; optimizelybuckets=%7b%7d; __utma=259415958.1044798684.1408703580.1426582799.1426769497.26; __utmz=259415958.1426769497.26.8.utmcsr=newsletter|utmccn=march-mule-dev|utmcmd=email|utmcct=cta; trwv.uid=mulesoft-1423587308590-81ed229b%3a25%3a1; km_uq=; mulesoft.sess=eyjtzxrhijp7imnyzwf0zwqioje0mjcwmtq2mdcynzasinrvdwnozwqioje0mjcwmtq2mtezotgsimv4cglyzxmioje0mjcwmju0mtezotgsim1heefnzsi6mta4mdawmdb9lcjpzci6inuttgcwylb2ls1uznktv0hpmvpynthwrwzay2rryzvhiiwicgfzc3bvcnqionsidxnlcii6eyj1c2vyx2lkijoimmnlmwq4ywqtnjuwni00ogq1lwewodutmdbhodhhyjvjnwq2in19fq==; mulesoft.sess.sig=azq4judq9bmpldxiaww_ph66nus; token=eyj0exaioijkv1qilcjhbgcioijiuzi1nij9.eyjpzci6ijjjztfkogfklty1mdytndhkns1hmdg1ltawytg4ywi1yzvkniisimzpcnn0tmftzsi6ikdpbgjlcnqilcjsyxn0tmftzsi6ikdyyw50iiwizw1hawwioijnawxizxj0qglyb24tbmvzdc5jb20ilcj1c2vybmftzsi6imdpbgjlcnqtz3jhbnqilcjvcmdhbml6yxrpb24ionsiawqiojewmdysim5hbwuioijtew50agvzaxmgu29mdhdhcmuilcjkb21haw4ioijzew50agvzaxmtc29mdhdhcmuilcjpzhbyb3zpzgvyx2lkijoibxvszxnvznqilcjjyw5nyw5hz2uionrydwusimv4dgvybmfsqxv0ag9yaxphdglvbii6zmfsc2usimlzrmvkzxjhdgvkijpmywxzzswiy29yzvnlcnzpy2vzswqioijhmjrjndrjos02zjizltq5mgutymixny1hzdllnzq5yzk5ytuifswiaw50zxjhy3rpdmvmb2dpbii6dhj1zswidg9rzw4ioiizmddizwywys1lmjrjltqwzmityjrjny00mtfkmwy5mgq1oduilcjpyxqioje0mjcwmtq2ndesimf1zci6imh0dha6ly9hcgktcgxhdgzvcm0vcmvwb3npdg9yesisimlzcyi6imh0dha6ly9hcgktcgxhdgzvcm0vcmvwb3npdg9yesj9.kwasoy7fn_bv26glx7vxx16jzufnpuvts5s_jk_oksu; ajs_user_id=null; ajs_group_id=null; _ga=ga1.1.1044798684.1408703580; _mkto_trk=id:564-szs-136&token:_mch-mulesoft.com-1423198102013-16286; kvcd=1427014686069; km_vs=1; cloudhub_session=02454bf829ae4b0723359feecff307bef0a-e24c-40fb-b4c7-411d1f90d585 host:anypoint.mulesoft.com origin:https://anypoint.mulesoft.com referer:https://anypoint.mulesoft.com/apiplatform/synthesis-software/ user-agent:mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.101 safari/537.36 x-requested-with:xmlhttprequest query string parameters view source view url encoded calcs:sync
even if post directly mock url postman, empty response error
a 404 suggest resource trying post doesn't exist, or possibly doesn't have post declaration defined in raml (which technically should error 405 returns 404).
if you're still having issues suggest checking out raml forums (raml.org) or sharing raml spec can see going on.
i'll suggest implement 405 missing methods clarify ambiguous errors in future.
thanks!
Comments
Post a Comment