# Malformed request. Please try again. Storj Static Website

**URL:** <https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658>\
**Category:** troubleshooting\
**Tags:** static-web-site\
**Created:** [June 8, 2022, 7:39pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658 "2022-06-08T19:39:56Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 8, 2022, 7:39pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/1 "2022-06-08T19:39:56Z")

</div>

hello,  
i often get this message when accessing my website. I set it up like described here [How to Host a Website on Storj | AtmoVantage](https://atmovantage.com/how-to-host-a-website-on-storj/)

also my zone file output is just CNAME [link.storjshare.io](http://link.storjshare.io).

it all worked nice for 1-2h also with cloudflare but suddenly nothing

 ![Error](https://storj-s3.bcdn.literatehosting.net/original/2X/6/6753b6342c60e7c37f37686cd71592dadb254f01.jpeg)

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 8, 2022, 7:44pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/2 "2022-06-08T19:44:57Z")

</div>

i am on cloudflare and those are my ssl settings. i had to switch to “flexible” cause i always got the “Error 521: Web server is down.” here they recommended [Community Tip - Fixing Error 521: Web server is down - Tutorial - Cloudflare Community](https://community.cloudflare.com/t/community-tip-fixing-error-521-web-server-is-down/42461)

1. If you have just moved to Cloudflare and you are seeing a 521 over HTTPS, it is possible that your _origin server has not been configured_ to allow port 443 be accessed by Cloudflare IPs. In this case you should configure your server/firewall to being listening on port 443 and allow us to be able to conect. If this is not possible, you can move to using ‘Flexible’ SSL under the SSL/TLS app on the dashboard.

I didn´t know how to allow port 443 be accessed by Cloudflare IPs so i switched the settings to “flexible ssl”

 ![ssl settings](https://storj-s3.bcdn.literatehosting.net/original/2X/1/1e4b936199fdf41d657d2b8d4c723321bbe2d3b0.jpeg)

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 7:12am UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/3 "2022-06-09T07:12:31Z")

</div>

I checked the cloudflare error Analytics

We have found that:

- mydomain is returning a high percentage of HTTP 5xx server errors Review [5xx Server Error](https://support.cloudflare.com/hc/articles/115003011431).

 ![Error Analytics](https://storj-s3.bcdn.literatehosting.net/original/2X/a/a6edcf03b44239fd9ba9713c7360f3070c997d0a.jpeg)

Also the Diagnostic Center displays:

- no\_dnssec\_found The site does not have any DNSSEC records.
- not\_found\_ds\_record The hostname has no DS records.
- HTTPS status fail No, your request failed with a response status of 400 or above.
- response\_non\_200 The site’s web server responded with a status code that isn’t 200 (OK).

---

<div class="post-metadata">

**Author:** ![wthorp](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/wthorp/32/1139_2.png) [@wthorp](https://forum.storj.io/u/wthorp)\
**Post date:** [June 9, 2022, 3:00pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/4 "2022-06-09T15:00:04Z")

</div>

I’m not accustomed to troubleshooting Cloudflare issues, but I’ll try to help. Can you still reach the linksharing page directly, without Cloudflare? The URLS would be in the form `https://link.storjshare.io/s/<access-id>/<path>` Do you get the same failure if you use Cloudflare with the CNAME of [link.us1.storjshare.io](http://link.us1.storjshare.io)?

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 4:04pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/5 "2022-06-09T16:04:03Z")

</div>

thank you. I am just starting programming totally new to all this.

so i put in this information: `https://link.storjshare.io/s/<Access Key ID>/<sj://mybucket>` and i get Access denied.

i also created a new zone file with this command `uplink share --dns <hostname> sj://<bucket>/<prefix> --base-url <linkshare url>` and i checked it says

Download : Allowed  
Upload : Disallowed  
Lists : Allowed  
Deletes : Disallowed  
NotBefore : No restriction  
NotAfter : No restriction  
Paths : sj://mylife/ (entire bucket)

---

<div class="post-metadata">

**Author:** ![wthorp](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/wthorp/32/1139_2.png) [@wthorp](https://forum.storj.io/u/wthorp)\
**Post date:** [June 9, 2022, 5:33pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/6 "2022-06-09T17:33:18Z")

</div>

Let me start at the beginning a bit. Storj has a native protocol that isn’t HTTP based. Those sj:// link only work with the native “Uplink” command line client. We also have an S3 compatible endpoint (which uses HTTP but doesn’t expose your data publicly) and Linksharing (which uses HTTP and makes your data public). The “access-id” I mentioned is the “storj-access” value you used when setting up your DNS record.

You can definitely use Linksharing without following CloudFront. The steps you took are what you’d do if you wanted 1) a custom URL and 2) SSL/TLS. If you don’t need TLS/SSL, you can just set it to “off” in CloudFlare and possibly skip Cloudflare completely. If you don’t need a custom domain, you can skip CloudFlare and the DNS setup, yet still have TLS.

So assuming you want a 1) public website with 2) a custom domain and 3) TLS/SSL, you’re on the right track. If your page is truly public, are you comfortable sharing the access-id, so I can check from here? Otherwise I’d try to build a URL that looks like this one again: `https://link.storjshare.io/s/<access-id>/<bucket>/<path>`, EG: [edge | Storj DCS](https://link.storjshare.io/s/juqzlks23iokksbkdlkjhfaifmwq/edge/).

Finally, I’d like to point you to our [closest documentation on this topic.](https://storj-labs.gitbook.io/dcs/how-tos/host-a-static-website/host-a-static-website-with-the-cli-and-linksharing-service)

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 7:40pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/7 "2022-06-09T19:40:58Z")

</div>

storj-root:mylife  
storj-access:jwdvsqcozolw4cindlv6w5qty43q

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 7:53pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/8 "2022-06-09T19:53:34Z")

</div>

i don´t understand all the different keys and access etc.

so i got this file:

Sharing access to satellite 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs@eu1.storj.io:7777

> // is this is the address of the server my website is hosted on?

=========== ACCESS RESTRICTIONS ==========================================================  
Download : Allowed  
Upload : Disallowed  
Lists : Allowed  
Deletes : Disallowed  
NotBefore : No restriction  
NotAfter : No restriction  
Paths : sj://mylife/ (entire bucket)  
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========  
Access : `

> // What is this Access for? Where do I use it?

`  
12BRUwBvBFHtmECEekaJjcoH6YnpL7qdyzaUbprsUiaoeiwqAUCCZXHGQcpRStEJ6qeJgCncrqWKSc3VHzU9zu3CbjMkJKAng7rkxWXwRhAs6iQGYZLuYwqhFUSfRJfTpnyb9tWDziDeUqGpcbgrzyP85XJquUepPNhb6PRjTjBkDLVK4Tdut4bkD57v2x5PeW82Pjo1uouem1EHmCxGFiCYDLbv7PyZPwDp9yNYRaS631PSnvkX9K3Ytbx56LL7qgF596v2tnbDYnJzWKzdwGUeeDTEGEGpwHDhZbed3HNh75aSe3aQJjuTumvZ22  
========== CREDENTIALS ===================================================================  
Access Key ID: jwdvsqcozolw4cindlv6w5qty43q

> // So this is the Access key with which i can see the files in the bucket on the storj network.

Secret Key : j36h37bdrh6unwz3vfsn35qs4znwyduo2zfrnjj2tq43ms2hlwwdq

> // What is this Secret key for?

Endpoint : [https://gateway.storjshare.io](https://gateway.storjshare.io)  
Public Access: true  
=========== DNS INFO =====================================================================  
Remember to update the $ORIGIN with your domain name. You may also change the $TTL.  
$ORIGIN [example.com](http://example.com).  
$TTL 3600  
www.mylife.plus IN CNAME [link.storjshare.io](http://link.storjshare.io).

> // I don´t get [link.eu1.storjshare.io](http://link.eu1.storjshare.io). Why?

txt-www.mylife.plus IN TXT storj-root:mylife  
txt-www.mylife.plus IN TXT storj-access:jwdvsqcozolw4cindlv6w5qty43q

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 8:02pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/9 "2022-06-09T20:02:42Z")

</div>

if i create an access grant and name it mylife and then i import it into the CLI with this command

`uplink access import main 1cCYAHiNyogwPRkZbkpo8C6txEeJ4cktWZoHzwAKTwNzGeAKhXyJZojfb8jSGGFSAc5M3zGgswJQXVEkrJ8na6nj4aeRRdtwvjgGFC5GXmgLFgBPn8EtwtmCHhcojrawXbWCdciN7RYGU3c4Lo7JQGxZuaNDGnMfprYGGqkuFXQuVNx4j6EyCxPP9ekhPa8NEh6ZLSLB7Cjf7...`

do i have to call “main” “mylife” or is “main” just the name to store the access grant on my local pc?

Also if i create an access grant i generate a passphrase. What is this passphrase for? Do i use this passphrase to access the bucket? So if i create a new bucket with a new passphrase i need also a new access grant? so each bucket has its own access grant?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 9, 2022, 8:19pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/10 "2022-06-09T20:19:25Z")

</div>

> [@MOOSI](#):
>
> Access : `
> 
> > // What is this Access for? Where do I use it?

This is an access grant, you can [import it to `uplink` CLI](https://docs.storj.io/dcs/getting-started/quickstart-uplink-cli/sharing-your-first-object/import-access/) or use in [FileZilla](https://docs.storj.io/dcs/how-tos/set-up-filezilla-for-decentralized-file-transfer/), or any other tool, which have a Storj integration. Or you may form an URL to your object like this:  
[https://link.storjshare.io/s/here-is-your-access-grant/my-bucket/my-file.png](https://link.storjshare.io/s/here-is-your-access-grant/my-bucket/my-file.png), but it’s less secure than using your **Access Key ID** , because access grant contains the all required information to get an access to the bucket(s), prefix(es), object(s), project (only with root access grant, generated in the satellite UI). Since you used a shared access grant, it’s derived from your root access grant and has restricted permissions to only this bucket and thus you didn’t breach your security. Just do not post your root access grant - it gives full permissions to your project.

> [@MOOSI](#):
>
> Access Key ID: xxx
> 
> > // So this is the Access key with which i can see the files in the bucket on the storj network.

exactly

> [@MOOSI](#):
>
> Secret Key : yyy
> 
> > // What is this Secret key for?

This is a secret key for your access key. Using **Access Key ID** , **Secret Key** and **Endpoint** you can [configure aws CLI](https://docs.storj.io/dcs/getting-started/gateway-mt/#configure-aws-cli-with-your-credentials) or any other S3-compatible tool to have an access to your buckets and objects via S3 protocol.

> [@MOOSI](#):
>
> // I don´t get [link.eu1.storjshare.io](http://link.eu1.storjshare.io). Why?

Because now linksharing service is routed automatically to closest location of your clients. But you still can use explicit name of the region, if you would like.

I checked your access - it looks correct, there is only one file accessible - `index.html`: [index.html | Storj](https://link.storjshare.io/s/jwdvsqcozolw4cindlv6w5qty43q/mylife/index.html)  
Since it’s small, it’s stored inline on your satellite, thus has 0 nodes.

> [@MOOSI](#):
>
> or is “main” just the name to store the access grant on my local pc?

this.

> [@MOOSI](#):
>
> Also if i create an access grant i generate a passphrase. What is this passphrase for?

This is encryption phrase, it’s used to derive encryption keys and encrypt your objects during upload and decrypt to show and download.

> [@MOOSI](#):
>
> So if i create a new bucket with a new passphrase i need also a new access grant?

The encryption phrase can be the same or different. However, to have an access to objects in that bucket you should use the same phrase used during upload.  
Moreover - you can upload every single object with a different encryption phrase. But you will see objects only with “their” encryption phrase.

Access grant is generated with the provided encryption phrase. So, if you used a different encryption phrase for the other bucket - you should generate an access grant with that phrase for that bucket to be able to import it to uplink or generate S3 credentials and have an access to objects in this bucket.

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 8:29pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/11 "2022-06-09T20:29:36Z")

</div>

i put all the correct infos into my DNS server, but still get “access denied” why?

| www.mylife.plus | IN | CNAME | [link.storjshare.io](http://link.storjshare.io). |
| --- | --- | --- | --- |
| txt-www.mylife.plus | IN | TXT | storj-root:mylife |
| txt-www.mylife.plus | IN | TXT | storj-access:jwdvsqcozolw4cindlv6w5qty43q |

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 8:34pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/12 "2022-06-09T20:34:18Z")

</div>

Is it possible to create a static website where i can display all my storj buckets with the foders/files in it and give users access to different folders via email/password or something like this?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 9, 2022, 8:34pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/13 "2022-06-09T20:34:19Z")

</div>

TXT records are missing in DNS response

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 8:39pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/14 "2022-06-09T20:39:54Z")

</div>

i put them in it works now took a bit!

 ![TXT](https://storj-s3.bcdn.literatehosting.net/original/2X/8/8805e059a3e6b4edfbe02bedbf5a6e674d41cffe.png)

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 9, 2022, 8:44pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/15 "2022-06-09T20:44:13Z")

</div>

It will not be static anymore - you would request login and password from users. For that you need a dynamic site.

You can upload objects to the bucket with a different encryption phrase (for example - provided by your users) and when they want to access them back - they should use the same encryption phrase, otherwise the bucket will look like empty. But you need to implement a UI + backend for that, and I do not think it’s possible to implement such UI + backend only client-side.

> [@MOOSI](#):
>
> i put them in
> 
> ![TXT](https://storj-s3.bcdn.literatehosting.net/original/2X/8/8805e059a3e6b4edfbe02bedbf5a6e674d41cffe.png)

The TTL for your domain is 3600. So you need to wait for a hour while you changes will be fully populated and 2 hours for TXT records.

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 8:48pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/16 "2022-06-09T20:48:38Z")

</div>

you are super nice and helpful thank you for your patient !!!

---

<div class="post-metadata">

**Author:** ![MOOSI](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/moosi/32/1129_2.png) [@MOOSI](https://forum.storj.io/u/MOOSI)\
**Post date:** [June 9, 2022, 9:15pm UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/17 "2022-06-09T21:15:43Z")

</div>

> [@Alexey](#):
>
> This is encryption phrase, it’s used to derive encryption keys and encrypt your objects during upload and decrypt to show and download.

is the encryption key another name for the secret key? so the access key is like the public key and the encryption key/ secret key is like my private key ?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 10, 2022, 6:53am UTC](https://forum.storj.io/t/malformed-request-please-try-again-storj-static-website/18658/18 "2022-06-10T06:53:25Z")

</div>

Those are all different keys.

**Access Key ID** and **Secret Key** are S3-compatible credentials, they are generated when you register your access grant on GatewayMT or GatewayST. You can consider these credentials as random - you cannot derive your encryption key from them, they just unlock your access grant on Gateway to have an access to your buckets and objects. The encryption key embedded to the access grant will allow you encrypt/decrypt your objects.  
In these S3 credentials the **Secret Key** is your private key to access Gateway, yes.

The encryption key in the access grant is your private key to decrypt your objects in buckets, however the whole access grant should be considered as a private key, especially root one, because it contains full information, required to have an access to your object(s), bucket(s) and project.  
If this is a root access grant (created in the satellite UI without limits) it gives full permissions to the entire project. Anyone who have a root access grant will have the same permissions as you.  
See [Access Management | Storj Docs](https://docs.storj.io/dcs/concepts/access/)  
You can check the access grant with `uplink access inspect 12BRU....` to see, what it contains.  
For the named access “main”:

```auto
uplink access inspect main

```

So be careful when you share your access grant. Only limited access grants (i.e. for the one object or one bucket with limited permissions like read-only) can be considered relatively safe.

If you share with `uplink share --url` it will generate an URL containing only **Access Key ID** (“login” part of GatewayMT credentials). It will allow only read-only access to the shared bucket(s), prefix(es), object(s). Having only **Access Key ID** nobody can get more information, like what permissions it have or what encryption and API key was used.
