# Error unmarshaling request

**URL:** <https://community.letsencrypt.org/t/error-unmarshaling-request/246430>\
**Category:** Client dev\
**Created:** [April 7, 2026, 6:57am UTC](https://community.letsencrypt.org/t/error-unmarshaling-request/246430 "2026-04-07T06:57:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sebastiannielsen](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@sebastiannielsen](https://community.letsencrypt.org/u/sebastiannielsen)\
**Post date:** [April 7, 2026, 7:17am UTC](https://community.letsencrypt.org/t/error-unmarshaling-request/246430/2 "2026-04-07T07:17:37Z")

</div>

ooh solved it.

Apparently its not enough to just strip BEGIN CERTIFICATE REQUEST and END CERTIFICATE REQUEST from the CSR. I have to convert it from b64 to b64\_url.

This was not clear in the example provided in the RFC 8555.

And logically it also don't make sense - since the outer JSON object is b64\_url encoded, its "protected" from being "malformed" in the POST request, so technically the inner CSR object should not need it.

Maybe the error message should be more clear - atleast in staging where it doesn't matter so much if "sensitive" information is leaked.

Like: "non-base64-url characters found in CSR" or similiar. Then its immediately clear why its not going through.

My HTML JS ACME2 client works now 🙂

 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/5/e/5e2824c741ff5e74c87cb4e79bdec587c829cbb3.png)

---

_[View the full topic](https://community.letsencrypt.org/t/error-unmarshaling-request/246430)._
