Comments (11)
working on it. can you tell me what caused the exception? maybe there is an issue with handling of meter values?
from steve.
I stumbled across this whilst testing MeterValues:
[4,"jKg4ShEDt4PxSv3J4291tioh2ES2K3dV","InternalError","Internal services failed while processing of the payload","SQL [insert into
stevedb
.connector_meter_value
(connector_pk
, transaction_pk
, `value_timesta..."]
But this was because i was using a transactionId that was not related to the Charge Point/request, after using a correct transactionId related to the Charge Point/request it just worked perfectly.
This "InternalError" happens aswell if the transactionId sent by the Charge Point in the MeterValues.req does not exist
from steve.
EDIT: As well as, the entry "errorDetails" should be an object and not a string as the server returns.
@nuno407 i know. my commit fixed this and only this, as i explained in my previous comment
from steve.
alright.
from steve.
Thank you @JavaIsJavaScript.
That's correct!
from steve.
This "InternalError" happens aswell if the transactionId sent by the Charge Point in the MeterValues.req does not exist
@JavaIsJavaScript are you sure about this? During my tests MeterValues.req without a transaction id do not cause an internal error.
from steve.
Yeah, without transactionId works, but if the transactionId in the request doesn't exist in the database i ment
from steve.
ah okay, then it's not our problem :)
from steve.
But @goekay,
The error response still does not match the specification. In this case a "PropertyConstraintViolation" as defined in OCPP-J v1.6 should be throw right?
EDIT: As well as, the entry "errorDetails" should be an object and not a string as the server returns.
"errorDetails": {
"type": "object"
}
Thank you for the help,
nuno
from steve.
technically speaking, you are right. i only fixed the bug, that errorDetails was handled as a simple string and not json object. it was there for years and was overlooked.
but the fact, whether a transaction id exists or not, is checked within the database (foreign key constraint). if it does not exist, we get in the application a chain of exceptions: SQLIntegrityConstraintViolationException in BatchUpdateException in DataAccessException. at this point, it's really hard to find out what went why wrong, other than looking at the error string returned by the database.
this is one of the reasons, why we cannot use some of the finer grained error codes.
from steve.
Thank you @goekay !
from steve.
Related Issues (20)
- STEVE deoloy through DOCKER unsuccessful HOT 6
- Regarding ISO15118 feature support HOT 1
- Multiple charging stations on the same power supply, limiting total current, peak shaving HOT 1
- No CallError for invalid BootNotification.req
- Steve Version: 3.5.0 HOT 2
- Create ID Tag via API HOT 1
- Only f and m allowed as sex values, other values let the request to user-details fail. HOT 1
- Grizzl-E Charger not connecting on AWS HOT 12
- Charge Point not showing up in Operations (steve knows CP, shows heartbeat and other data) HOT 2
- Changing Database Port away from 3306 does not work HOT 2
- Security Issue
- built steve sucessfuly in maven but unable to run it ,generates a log with error HOT 3
- Steve Server is running on GCP,I can access from internal, but I cant acsess from external. HOT 1
- About ConcurrentTx HOT 1
- unable to connect to steve server HOT 3
- Unable to connect to steve from different computer HOT 4
- How about using Finishing status instead of Available in afterStop enum value? HOT 1
- Exceptions and websocket closures on StopTransaction HOT 2
- Build Failure HOT 7
- Killed without a trace HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steve.