struggeling with my endpoints backend
dunno how to fix the 401 error
36 Replies
ā This post has been reserved for your question.
Hey @Timo! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
"/registrations/",
"/login",
"/home",
"/auth/",
"/event",
"/events/",
"/api/events/",
"/api/registrations/",
"/api/forum/",
"/forum/",
"/forum",
"/api/forum/id/",
"/forum/id/",
"/forum/id",
"/forum/replies",
"/forum/replies/",
"/forum/replies/",
"/error",
kinda a mess but for example event needs 2 of those otherwise it won t work

server.servlet.context-path=/api

@RequestMapping("/replies")
"/api/forum/id/",
"/forum/id/",
try
\
have that one already
did u login then
no need this is expcetion
\

uhhhhhhhhhhh
does other public url work
any other public url
yeah but also kinda cursed
wdym
like events needs 2 of the three in other to work
so what exactly is the problem
u said u need to fix 401
in that endpoint
yeah that is the problem and feel like my config paths suck

if u got forum/** u dont need to set /forum/id and /forum/id/
oh
yeah but it doesn t work for event for example
\


for example so i need al 3 for it to work
so instead of having 401 u want it to be a public endpoint
yes
yeah otherwise i won t put it in public patterns lol
can you do a quick test and just
do permitall
instead of the public endpoints
see if thats gonna work
but why will that help a 401 is a 401?
401 means unauthorized
which means u didnt login
for that endpoint
guess i will login and test then
ok

still get it when logged in
so im confused
š
anyone š
I'd recommend checking the exact request in the browser devtools
š¤ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.