# PodBrowser - Failed to load resource: the server responded with a status of 404 (Not Found)

**URL:** <https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474>\
**Category:** General Discussion\
**Created:** [July 14, 2022, 4:17pm UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474 "2022-07-14T16:17:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![henryprosser](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/henryprosser/32/3378_2.png) [@henryprosser](https://forum.solidproject.org/u/henryprosser)\
**Post date:** [July 14, 2022, 4:17pm UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/1 "2022-07-14T16:17:30Z")

</div>

Hi, I’m trying to access files using the PodBrowser but I consistently get errors when trying to access my files as seen below

 ![404 error](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/2/2eb95d29410f6e68c9bc4c5ff77dc473988fa70d.png)

The Pod above I’m using is the SolidCommunity net. I have tested with other Pod Providers:

PodInrupt net - always get error  
PodInrupt com - never get error

Unfortunately I have to use SolidCommunity Pod as it is the only one that supports accessing private resources via Python SOLID API which is what I require.

If anyone could offer any assistance it would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![bourgeoa](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/bourgeoa/32/291_2.png) [@bourgeoa](https://forum.solidproject.org/u/bourgeoa)\
**Post date:** [July 15, 2022, 12:42pm UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/2 "2022-07-15T12:42:42Z")

</div>

There must be a podBrowser issue. Is the podBrowser able to display .csv ?  
I have no problem accessing them with Google Chrome.

---

<div class="post-metadata">

**Author:** ![A\_A](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/a_a/32/786_2.png) [@A\_A](https://forum.solidproject.org/u/A_A)\
**Post date:** [July 15, 2022, 4:48pm UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/3 "2022-07-15T16:48:05Z")

</div>

If you look closely at the error, it shows that a `...07-11.csv.acl` file is not found. This is normal behaviour if it doesn’t have explicit permissions set (ie it inherits the permissions from some parent folder).

So if there is a bug, it is not necessarily related to those 404s

---

<div class="post-metadata">

**Author:** ![A\_A](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/a_a/32/786_2.png) [@A\_A](https://forum.solidproject.org/u/A_A)\
**Post date:** [July 15, 2022, 4:51pm UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/4 "2022-07-15T16:51:12Z")

</div>

> [@henryprosser](#):
>
> Unfortunately I have to use SolidCommunity Pod as it is the only one that supports accessing private resources via Python SOLID API which is what I require.

I don’t really understand what you try to do here and what exactly fails. Can you elaborate the steps to reproduce, what was expected, and what happened instead?

---

<div class="post-metadata">

**Author:** ![ThisIsMissEm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/thisismissem/32/3166_2.png) [@ThisIsMissEm](https://forum.solidproject.org/u/ThisIsMissEm)\
**Post date:** [July 16, 2022, 12:18am UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/5 "2022-07-16T00:18:06Z")

</div>

I don’t think we try to grab it as a `.csv` there, it looks like it’s failing when accessing the ACLs, as others have mentioned. I just tried accessing a CSV file via podbrowser after uploading one to an account on [https://login.inrupt.com](https://login.inrupt.com) (see: [https://inrupt.com/blog/pod-spaces-upgrade](https://inrupt.com/blog/pod-spaces-upgrade)), and it worked fine.

---

<div class="post-metadata">

**Author:** ![henryprosser](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/henryprosser/32/3378_2.png) [@henryprosser](https://forum.solidproject.org/u/henryprosser)\
**Post date:** [July 16, 2022, 10:47am UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/6 "2022-07-16T10:47:46Z")

</div>

> [@A\_A](#):
>
> > [@henryprosser](#):
> >
> > Unfortunately I have to use SolidCommunity Pod as it is the only one that supports accessing private resources via Python SOLID API which is what I require.
> 
> I don’t really understand what you try to do here and what exactly fails. Can you elaborate the steps to reproduce, what was expected, and what happened instead?

So I’m essentially following the bottom bit of this page ([https://github.com/twonote/solid-file-python/blob/master/solid-file-python-getting-start.ipynb](https://github.com/twonote/solid-file-python/blob/master/solid-file-python-getting-start.ipynb)) - the “Access private resources” section. I’m then using the Python requests package to retrieve the file via URL. I then want to write the contents of the file to a new file locally.

```auto
    from solid.solid_api import SolidAPI
    import requests

    # I know this is bad practice, will use a .env file. Just using for testing.
    USERNAME = "henryprosser"
    PASSWORD = "password"

    PRIVATE_RES = (
        "https://henryprosser.solidcommunity.net/aqm-data/aqm1/2022-07-14.csv"
    )
    IDP = "https://henryprosser.solidcommunity.net/"

    auth = Auth()
    api = SolidAPI(auth)
    auth.login(IDP, USERNAME, PASSWORD)
    resp = api.get(PRIVATE_RES)

    # Trying to access file via URL
    response = requests.get(PRIVATE_RES)
    print(response)

    # Writing contents of file to new file locally
    file_name = "2022-07-14.csv"
    open(file_name, "wb").write(response.content)

```

If I can access the file, I get \<Response [200]\> and it writes to a new file as expected. Else I get a \<Response [401]\> and it does not write successfully. I couldn’t work out why some Pod files worked and others didn’t (I originally thought it was having problems accessing **all** my files in my Solid Pod) then I realised the ones I was getting 401 responses were the files where I’m getting the error outlined in my first post and it just keeps loading on the pod browser.

---

<div class="post-metadata">

**Author:** ![henryprosser](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/henryprosser/32/3378_2.png) [@henryprosser](https://forum.solidproject.org/u/henryprosser)\
**Post date:** [July 16, 2022, 10:55am UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/7 "2022-07-16T10:55:45Z")

</div>

> [@A\_A](#):
>
> If you look closely at the error, it shows that a `...07-11.csv.acl` file is not found. This is normal behaviour if it doesn’t have explicit permissions set (ie it inherits the permissions from some parent folder).
> 
> So if there is a bug, it is not necessarily related to those 404s

How do I go about setting explicit permissions? Just to note that I am creating files via Python

```auto
...
FILE_NAME = f"{datetime.now().strftime('%Y-%m-%d')}.csv"
file_url = aqm_folder_url + FILE_NAME

self.api.put_file(file_url, csv_header, FILE_CONTENT_TYPE)
print(f"Created AQM data file at '{file_url}', with header\'{csv_header}'.")

```

---

<div class="post-metadata">

**Author:** ![henryprosser](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/henryprosser/32/3378_2.png) [@henryprosser](https://forum.solidproject.org/u/henryprosser)\
**Post date:** [July 16, 2022, 11:15am UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/8 "2022-07-16T11:15:24Z")

</div>

> [@ThisIsMissEm](#):
>
> I don’t think we try to grab it as a `.csv` there, it looks like it’s failing when accessing the ACLs, as others have mentioned. I just tried accessing a CSV file via podbrowser after uploading one to an account on [https://login.inrupt.com](https://login.inrupt.com) (see: [Solid Pod Upgrade & Web IDs](https://inrupt.com/blog/pod-spaces-upgrade)), and it worked fine.

Yes after investigating further, it is indeed a problem with the .acl file.

 ![Screenshot 2022-07-16 121326](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/4/4d99e730c46ca2d3924cbd44ea31349368fe0bbe.png)

---

<div class="post-metadata">

**Author:** ![henryprosser](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/henryprosser/32/3378_2.png) [@henryprosser](https://forum.solidproject.org/u/henryprosser)\
**Post date:** [July 16, 2022, 11:16am UTC](https://forum.solidproject.org/t/podbrowser-failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found/5474/9 "2022-07-16T11:16:25Z")

</div>

> [@ThisIsMissEm](#):
>
> I don’t think we try to grab it as a `.csv` there, it looks like it’s failing when accessing the ACLs, as others have mentioned. I just tried accessing a CSV file via podbrowser after uploading one to an account on [https://login.inrupt.com](https://login.inrupt.com) (see: [Solid Pod Upgrade & Web IDs](https://inrupt.com/blog/pod-spaces-upgrade)), and it worked fine.

The csv file is ok.

 ![Screenshot 2022-07-16 121413](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/0/0d64b76683b87dc2e18ff9203a048f22cab43607.png)
