Error Status Code 401 in weweb, but performing the delete action in Xano

I having troubles on a simple DELETE method using Xano native integration on weweb.
Weweb show status code 401 on all request, but Xano performs the request OK and the item is Deleted from my database.
this inconsistency scares me a little. I could not find a way to make it work, or make weweb understand that it have worked. I have logged in, logged out, update token… I tried to do it buy API REST, but the DELETE method is not a option, which is another point that i don’t understand.

Can anyone give me some light on how to make this simple thing (delete a record) work?

Thanks in advance.

Hi @FLP :wave:

Let me try to help you with this.

Here’s a video showing two ways of deleting a record in Xano:

  1. with the REST API plugin
  2. with the Xano plugin

If the video above doesn’t help you identify the issue, can you create a few fake records in Xano and try deleting them while recording your screen so we can better understand what’s going on?

It’d be super helpful if we could see how the Xano endpoint is setup and the roles and permissions of the user who is authenticated in WeWeb when making the delete call.

Yes, it is but you’ll need to trigger the request in a Workflow:

The reason for this is that Collections are to interact with data you might want to paginate or filter but it’s a great UX point, I’ll pass it on to the product team!

That said, you shouldn’t need the REST API plugin. You should be able to delete a Xano record with the Xano integration like I showed in the second part of the video.

Thaks a lot for your time. I was trying to create a collection with a DELETE funcion and it is not working. when doing on workflow, i works perfect, and I agree it’s a much better aproach.

I getting used to weweb. I am liking it a lot

Thanks again for your attention.

1 Like

Awesome! Glad you’re enjoying it :slight_smile:

And you’re welcome :slight_smile: More than happy to help!