Closed grdw closed 6 years ago
Sorry for being thick: how does converting technologies to a hash fix the 401 Unauthorized response? Was ETMoses sending data in the wrong format?
Oh, I'm sorry for not explaining.
This is the current situation: Currently on beta there's still an error ocurring when trying to import a scenario for ETMoses. This is the error from Airbrake. The problem is the formatting.
After the couple of lines of fixing in this PR the other error bubbles up at ETEngine (probably due to the Rails 5 upgrade I can imagine).
Got it, thanks!
You're right about the strong params in ETEngine. ConverterController#stats needs the following change:
- keys = params.require(:keys)
+ keys = params.require(:keys).permit!.to_h
I created a PR here: https://github.com/quintel/etengine/pull/999
This seems to work locally:
However, if I try to save it (it does save):
Something goes wrong at ETEngine (for
api/v3/scenarios/<scenario-id>/converters/stats
):Seems that strong parameters is needed for this to work. 🤔