struggeling with my endpoints backend

dunno how to fix the 401 error
36 Replies
JavaBot
JavaBot•6mo ago
āŒ› This post has been reserved for your question.
Hey @Timo! Please use /close or the Close Post button 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Timo
TimoOP•6mo ago
"/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
Timo
TimoOP•6mo ago
No description
Timo
TimoOP•6mo ago
server.servlet.context-path=/api
Timo
TimoOP•6mo ago
No description
Timo
TimoOP•6mo ago
@RequestMapping("/replies")
ayylmao123xdd
ayylmao123xdd•6mo ago
"/api/forum/id/", "/forum/id/", try
"/forum/**"
"/forum/**"
Timo
TimoOP•6mo ago
\
No description
Timo
TimoOP•6mo ago
have that one already
ayylmao123xdd
ayylmao123xdd•6mo ago
did u login then
Timo
TimoOP•6mo ago
no need this is expcetion
Timo
TimoOP•6mo ago
\
No description
ayylmao123xdd
ayylmao123xdd•6mo ago
uhhhhhhhhhhh does other public url work any other public url
Timo
TimoOP•6mo ago
yeah but also kinda cursed
ayylmao123xdd
ayylmao123xdd•6mo ago
wdym
Timo
TimoOP•6mo ago
like events needs 2 of the three in other to work
ayylmao123xdd
ayylmao123xdd•6mo ago
so what exactly is the problem u said u need to fix 401 in that endpoint
Timo
TimoOP•6mo ago
yeah that is the problem and feel like my config paths suck
Timo
TimoOP•6mo ago
No description
ayylmao123xdd
ayylmao123xdd•6mo ago
if u got forum/** u dont need to set /forum/id and /forum/id/ oh
Timo
TimoOP•6mo ago
yeah but it doesn t work for event for example
Timo
TimoOP•6mo ago
\
No description
Timo
TimoOP•6mo ago
No description
Timo
TimoOP•6mo ago
for example so i need al 3 for it to work
ayylmao123xdd
ayylmao123xdd•6mo ago
so instead of having 401 u want it to be a public endpoint yes
Timo
TimoOP•6mo ago
yeah otherwise i won t put it in public patterns lol
ayylmao123xdd
ayylmao123xdd•6mo ago
can you do a quick test and just do permitall instead of the public endpoints see if thats gonna work
Timo
TimoOP•6mo ago
but why will that help a 401 is a 401?
ayylmao123xdd
ayylmao123xdd•6mo ago
401 means unauthorized which means u didnt login for that endpoint
Timo
TimoOP•6mo ago
guess i will login and test then
ayylmao123xdd
ayylmao123xdd•6mo ago
ok
Timo
TimoOP•6mo ago
No description
Timo
TimoOP•6mo ago
still get it when logged in so im confused šŸ™ƒ anyone šŸ™‚
JavaBot
JavaBot•6mo ago
"/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",
"/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",
dan1st
dan1st•6mo ago
I'd recommend checking the exact request in the browser devtools
JavaBot
JavaBot•6mo ago
šŸ’¤ 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.

Did you find this page helpful?