|
@@ -107,6 +107,9 @@ module.exports = (crowi) => {
|
|
|
|
|
|
|
|
async function postRelationTest(token) {
|
|
async function postRelationTest(token) {
|
|
|
const proxyUri = crowi.configManager.getConfig('crowi', 'slackbot:proxyServerUri');
|
|
const proxyUri = crowi.configManager.getConfig('crowi', 'slackbot:proxyServerUri');
|
|
|
|
|
+ if (proxyUri == null) {
|
|
|
|
|
+ throw new Error('Proxy URL is not registered');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
const result = await axios.get(urljoin(proxyUri, '/g2s/relation-test'), {
|
|
const result = await axios.get(urljoin(proxyUri, '/g2s/relation-test'), {
|
|
|
headers: {
|
|
headers: {
|