Projects tigase _server server-core Issues #1458
tigase8.1.2 api cannot be used (#1458)
Closed
Unknown opened 3 years ago

I have a problem with… When I use java to call the API in rest, I report the error "to access URI = '/ rest / stream /' a valid API key is required". I added an apikey in the admin page, but it is useless. There is no init.properties file in the etc directory of version 8.1.2. Do I need to create it myself

**Details **

  • Tigase version: 8.1.2
  • JVM flavour and version AdoptOpenJDK11
  • Operating system/distribution/version centos 7
Unknown commented 3 years ago

This is my code image image

Unknown commented 3 years ago

image I added these to the configuration file, but it still doesn't work...

Unknown commented 3 years ago

As stated at https://docs.tigase.net/tigase-http-api/stable-snapshot/Tigase_HTTP-API_Guide/html/ you need to pass api-key as a parameter and not api_key as you did. Please see mentioned documentation for more hints and suggestions.

Unknown commented 3 years ago

After I pass "api_key" as a parameter, I report an error of "302 temporary redirection". After I write "open_access" in the configuration file, I do not pass "api_key", but I also report the same error of temporary redirection. There is no configuration about redirection in my configuration file. How should I solve it? Thank you very muchAfter I pass "api_key" as a parameter, I report an error of "302 temporary redirection". After I write "open_access" in the configuration file, I do not pass "api_key", but I also report the same error of temporary redirection. There is no configuration about redirection in my configuration file. How should I solve it? Thank you very much ------------------ 原始邮件 ------------------ 发件人: "tigase/tigase-server" ***@***.***>; 发送时间: 2021年10月8日(星期五) 下午2:51 ***@***.***>; ***@***.******@***.***>; 主题: Re: [tigase/tigase-server] tigase8.1.2 api cannot be used (issue #1458)

As stated at https://docs.tigase.net/tigase-http-api/stable-snapshot/Tigase_HTTP-API_Guide/html/ you need to pass api-key as a parameter and not api_key as you did. Please see mentioned documentation for more hints and suggestions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

issue 1 of 1
Type
Question
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1458
Please wait...
Page is in error, reload to recover