Issues with getting both POST and GET http parameters in appengine-magic 0.4.3/Compojure 0.6.4?

It certainly looks like dev_appserver. Sh is busted with App Engine 1.5.1. Pity, but you aren't really supposed to use it with appengine-magic.

You should use the interactive REPL tools (i.e. , ae/serve). They work fine.

Up vote 0 down vote favorite share g+ share fb share tw.

I'm having some serious issues with capturing POST and GET parameters with the latest appengine-magic/compojure versions. The parameters always come up as blank, even though the request object clearly has the right stuff in it. I've seen some stuff around the interwebs about a change in the Compojure protocol where you have to manually put in the wrappers.

I've tried this (using the handler/api wrapper to avoid the stuff in handler/site wrapper that breaks GAE) but it still doesn't work. What am I doing wrong here? My project.

Clj file: (defproject pitch-filter "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies org. Clojure/clojure "1.2.0" org. Clojure/clojure-contrib "1.2.0" compojure "0.6.4" hiccup "0.3.6" jtidy "4aug2000r7-dev" commons-lang "2.5" :dev-dependencies appengine-magic "0.4.2" clj-http "0.1.1") My core.

Clj file: (ns pitch-filter. Core (:use compojure. Core appengine-magic.

Multipart-params :only wrap-multipart-params hiccup. Middleware :only (wrap-base-url)) (:require pitch-filter. Fetch :as fetch compojure.

Route :as route compojure. Handler :as handler appengine-magic. Core :as ae appengine-magic.services.

Url-fetch :as url (defroutes pitch-filter-app-routes (GET "/" "Main Page") (GET "/form" (str "" "" "" "")) (POST "/post" {params :params} (pr-str params)) (route/not-found "Page not found")) (def pitch-filter-app-handler (-> pitch-filter-app-routes (handler/api) (wrap-base-url) )) (ae/def-appengine-app pitch-filter-app #'pitch-filter-app-handler) google-app-engine clojure compojure appengine-magic link|improve this question edited Jul 12 '11 at 5:29Dave W. Smith5,632714 asked Jul 12 '11 at 4:56Jieren6791415 81% accept rate.

I use (handler/site) and your routes. The response on post is like {:test "aaaa"} – zmila Jul 12 '11 at 7:23.

It certainly looks like dev_appserver. Sh is busted with App Engine 1.5.1. Pity, but you aren't really supposed to use it with appengine-magic.

You should use the interactive REPL tools (i.e. , ae/serve). They work fine.

I updated the ticket you opened on the appengine-magic project page (github.com/gcv/appengine-magic/issues/28). -gcv.

I think that was some other guy, but thanks for checking this out – Jieren Aug 18 '11 at 22:54.

Turns out that this issue only happens when using the Google App Engine 1.5.1 dev_appserver.sh. It works fine with 1.4.3. I'll leave this open in case someone else finds a better solution.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions