cartodb
cartodb copied to clipboard
Create group fails
Context
Versions:
cartodb: 4.33.0 Postgres 12 PostGIS 3 cartodb-postgresql 0.35
When trying to create a group an exception is thrown with the follow error:
{"error": {
"spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: TypeError: expected bytes-like object, not str"} }
Screenshot:
Steps to Reproduce
Please break down here below all the needed steps to reproduce the issue
Test via rails console
irb(main):005:0> group = @organization.create_group(display_name)
[pool] Creating a new connection for localhost:cartodb_user_e6d6f832-7528-4261-96f6-a28e4f78dd8a_db:5432:cartodb_user_e6d6f832-7528-4261-96f6-a28e4f78dd8a:ar (1)
ActiveRecord::StatementInvalid: PG::ExternalRoutineException: ERROR: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: TypeError: expected bytes-like object, not str
CONTEXT: Traceback (most recent call last):
PL/Python function "_cdb_group_creategroup_api", line 7, in <module>
plpy.execute(query)
PL/Python function "_cdb_group_creategroup_api"
SQL statement "SELECT cartodb._CDB_Group_CreateGroup_API(group_name, group_role)"
PL/pgSQL function cdb_group_creategroup(text) line 7 at PERFORM
: select cartodb.CDB_Group_CreateGroup('thedudes')
from /var/lib/gems/2.4.0/gems/activerecord-4.2.11/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
@CartoDB/rt-managers
@gonzaloriestra unfortunately RT doesn't provide support for open source installations. @sabman you might want to try posting your issue in CARTO's Google Group, support for Open Source happens there: https://groups.google.com/forum/#!forum/cartodb
This is a bug report not a support ticket with version numbers close to bleeding edge. If it's not a bug would you care to elaborate on your message? An explanation on how you reached that conclusion would be useful.
@sabman sorry, but in carto.com it's working fine and we are not able to reproduce it, so it's probably an installation/configuration issue.
I think is a bug because it happens also to me on more than one instance! always same errors. So or it's a bug or there is some error in the guide to install carto.
Ok, I'll add this to our backlog to have a look when we can. Thanks!
ClubHouse story: https://app.clubhouse.io/cartoteam/story/83570/create-group-fails