catch errors when decoding post data