Skip to main content
Sep 6, 2022 11:26 AM UTC
Solved

IoTGateway's REST Server: writeResult: "Request rejected."

from the subject, running 6.12 ThingWorks KEPWare Server with IoTGateway REST Server configured as write enabled (for endpoints).

 

When attempting to write a value to a tag through REST call, the following is returned:

 

 

 

{
 "writeResults": [
 {
 "id": "<tag_name>",
 "s": false,
 "r": "Request rejected."
 }
 ]
}

 

 

 

 
It has been observed that the issue clear away once I run an OPCQuick Client and attempt to browse tags. All the tags are hosted locally (trying to write to a simulation driver tag).
 
Issue reoccurs when re-initializing/restarting the server.
 
Any ideas?
 
===Update 1===
The initial configuration was that the tag (IoT Item) "Capture Options" is configured to be "Explicit Read" rather than "Scan Tag". When using the latter, the issue doesn't occur.
 
The requirement though is to be "Explicit Read"
 
MS_9937986_1-1662466874820.png

 


 

Jul 2, 2025 2:13 AM UTC

The issue was the tag had a "default" datatype, it had to be specified.

2 replies

Nov 3, 2022 6:14 PM UTC

HI @MS_9937986 -  You've not supplied a whole lot of information on what you're trying to do in order to guide you (as in your server application with REST endpoint, auth mechanism, etc.).  I'd suggest that you look at the server side access log as this should give you an indication of why the request was refused.

MS_9937986AuthorAnswer
Jul 2, 2025 2:13 AM UTC

The issue was the tag had a "default" datatype, it had to be specified.