Skip to main content
7-Bedrock
September 6, 2022
Solved

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

  • September 6, 2022
  • 2 replies
  • 1446 views

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

 


 

Best answer by MS_9937986

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

2 replies

15-Moonstone
November 3, 2022

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_99379867-BedrockAuthorAnswer
7-Bedrock
July 2, 2025

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