LeoRLM
April 9, 2023, 2:20pm
1
Hello,
I am using the using the below youtube video from Brian English to manage my roles via the admin console.
VIDEO
However, my userroles API is not giving any results - meaning that the table on my admin console is not populated with any user roles.
When I view the API in browser I see this error:
{“status”:“404”,“message”:"/api/admin/role/userroles not found."}
And therefore despite me being logged in to my account and viewing my user roles, the table gives no results:
Any ideas to check would be much appreciated - I have gone over the video many times and made sure i have followed Brian’s steps correctly!
Thanks,
Leo
404 are not found errors is this error on local host in development or a remote host? Could just be you need to do a publish if its a production target:
Intro
The Publish Manager allows you to publish your project - deploy files, database changes and commit to Git in a single step, from the easy to use publishing dialog.
Publish Manager Options
You can find the Publish Manager at the bottom panel of Wappler UI:
[Screenshot_6]
Clicking the Publish button will open the Publish Manager dialog:
[Screenshot_1]
First, select the target you want to publish your project to:
[Screenshot_2]
Then you can choose to delete the files from remote s…
1 Like
LeoRLM
April 9, 2023, 2:35pm
3
I am on local host in development - all the other apis are working fine and being found without issue, including in the same folder as this one
Any renames in case for example Userroles
to userroles
?
LeoRLM
April 9, 2023, 2:42pm
5
No - you can see the files and corresponding APIs here:
I have created a few apis and renamed them or deleted them - and I am storing these files on Onedrive so not sure if either of those aspects could be causing the issue?
Apologies as I am a newbie to all of this!
Thanks for your efforts!
If you right click the workflow and open in browser do you see a 404 or some text about the action?
Also what is your hosting type Docker, Wappler Local Server etc
Never used OneDrive but along as the files are available locally I cant see it been a issue
LeoRLM
April 9, 2023, 3:15pm
7
If I right click and open in browser i get the below error:
{“status”:“404”,“message”:"/api/admin/role/userroles not found."}
And i am using the Wappler Local Server
Could you try restarting the server to see if anything changes, should be somewhere bottom left im using Docker so not sure the exact location on the Local Server
LeoRLM
April 9, 2023, 5:58pm
9
Thank you - I have restarted the server and turned it off and on, and the same problem remains - very strange!
Hmm everything looks correct to me maybe some of the other community members will have some knowledge on this
You could also try remaking the action just to see if it was something that happened in the process
I doubt it would be anything like a cache or the links been set to either document or site root seen as you have other actions working but maybe wrong
Sorry I couldn’t be more help on this one
JonL
April 9, 2023, 7:27pm
11
Can you check the routes panel and see if there is one that points to admin/role/userroles
?
LeoRLM
April 9, 2023, 10:07pm
12
These are the only routes
LeoRLM
April 9, 2023, 10:07pm
13
No worries, thank you so much for trying!!
1 Like
There actual isn’t any route for api’s right? They are all loaded dynamical on server start I thought.
ben
April 10, 2023, 1:40am
15
I have come across the same problem where the JSON file cannot be found while it is definately there. The first thing that I do in such an occasion is to restart the computer. If that does not work, I delete (or renane) the file and create a new one with the original name. That usually solves the problem.
If this does not solve your problem, please come back here.
1 Like
JonL
April 10, 2023, 2:45am
16
Waaaaayyyyy toooo much sun. I should have gone directly to bed
1 Like
LeoRLM
April 10, 2023, 9:58am
17
Ahhhh the old classic switch it off and on - IT HAS WORKED
Thank you so much all for your help - very relieved I can carry on with Brian’s amazing course now!!
3 Likes