forums/forum/server/ new topic forbidden

Zenon Panoussis3 years ago

I just posted a reply here, but when I try to start a new topic on forums/forum/server/ I get "forbidden". What is wrong?

Zenon Panoussis3 years ago

Obviously I could start a new thread here. But when I tried to post here what I had meant to post in forum/server/, I also got "forbidden". So I'm beginning to suspect that it has to do with the content of the posting, not with the forum. Then again, there is nothing strange or wrong with the content.

I'll post this, then see if I can post the "forbidden" content as a reply in this thread.

Zenon Panoussis3 years ago

I could not. Something is blocking and there is zero error catching and reporting.

Zenon Panoussis3 years ago

D7 (d7networks.com) runs a pay-per-message SMS gateway that is very attractive for low-volume messaging, because it has no monthly fees; you can pay in USD 10 and it might last you a year. However, I kept getting 401 HTTP replies and I had a terrible time until I managed to configure traccar correctly for it. The problem was not knowing whether to use sms.http.authorizationHeader and/or sms.http.authorization, or not, and whether sms.http.template should be in application/x-www-form-urlencoded or application/json format. To spare the next person the same hassle, I'm posting my working traccar.xml SMS section.

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://rest-api.d7networks.com/secure/send</entry>
<entry key='sms.http.user'>username</entry>
<entry key='sms.http.password'>password</entry>
<entry key='sms.http.template'>{"to": "{phone}", "from": "traccar", "content": "{message}"}</entry>

Anton, would you consider adding it here?

This is for D7's REST API. They also have an HTTP API with more capabilities, but its authentication method and data format are different and I just took the first API that I got to work.

Zenon Panoussis3 years ago

OK, I still don't know what it is, but I've narrowed it down and it's a bug. First I tried the posting right above this one, which resulted in "forbidden". Then I worked around that by only posting the first paragraph, without the xml and what comes after it. That worked fine. Subsequently I edited the posting and added the rest, which also worked fine.

So, if posting xml is not banned, blocking it is a bug. Or, if posting xml is banned, being able to bypass the ban by editing an existing posting is a bug. Either way, the xml syntax highlighting of the previous posting is perfect, which suggests that posting xml is supposed to be supported and not meant to be banned. Something is broken in the forum software. What software is it?

Anton Tananaev3 years ago

It's probably not related to content, but related to timing. We have some rate limiting. We had spam issues in the past, so we are trying to minimize it.

Anton Tananaev3 years ago

You should be able to post in the original topic. Maybe just wait a bit.

Zenon Panoussis3 years ago

Oh, but I was trying all afternoon and evening (EEST) yesterday. In fact I started trying to post a question, but I was blocked for so long that I figured out the answer myself before I could post the question. First I thought that the server might be broken, so I waited and tried again later. Then I saw that other people had posted during the time that I couldn't, so it wasn't the server. I thought it's perhaps something with the server forum, posted a reply somewhere else, then started this thread. And it was only seconds between (a) trying the entire D7 posting here and getting "forbidden", then (b) posting half of it and then (c) editing and adding the rest.

We'll see. If others have the same problem, they might find this thread and add information that could help nail it.