Issues with the API

Hey Guys,

Long time no speak ey :wink: been a bit busy but we’re back at it!

Just thought I’d pick up at a thread that was left behind a little while ago, about the API issues that we are having.

It seems then when trying to make a call, it is going to the /api/v2.1 folder - after looking through the installation files I am unable to locate this file, not able to pin point through any links that are associating the files together.

It affects the day to day work, because we are unable to generate share links, or anything that requires the API (for example, edit or delete users…).

I did notice there is an API folder in:
/opt/seafile/seafile…/seahub/admin/api2

But I just wanted to check this with yourselves.

I did notice that in the links it is calling:
SERVERADDRESS/api/v2.1/####

Are we missing any folders that are needed? It was all working fine when the server was first setup, but we have been having this issue for a while now.

Please see picture below:

Much appreciated with any and everyone’s assistance on this :slight_smile:

For reference, this was the other thread:
https://forum.seafile.com/t/api-issues-on-v10

@daniel.pan - This was something that we were looking at last time, basically this flat out doesn’t work now, is there a way to restore the folder and/or check to see why the API links are all failing?

Kind regards,
Mitch

I don’t quite understand what you mean.

You can check our API document web site: Introduction

For admin API, you can check this part in the document:

@daniel.pan

For example, when trying to update the site title I am getting API errors saying that there is an Error Empty Response.

In the past, when we are trying to create share links for customers we are getting the same ‘Empty Response’ error messages in the console.

This is all through the WebUI itself, not anything external, sorry - should’ve clarified that.

@daniel.pan

Also to add - I have updated the Site_Title and the Site_Name in the seahub_settings.py file, but these also aren’t changing either (and I cannot find else where to input these).

Any pointers on this one?

The site title cannot be changed via API. If you have modified them in the system admin web UI, you should change them again in the web UI.

https://manual.seafile.com/latest/maintain/

@daniel.pan I’m not using the API… The issue is the web calls that it is making are failing.

I have made all of the changes through the UI itself, the only reason I mentioned the API is because that are the calls that it is making i.e. When I am trying to make the changes to the Site Title through the UI: