question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create group fails

See original GitHub issue

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:

Sharing_Indicator

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'

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gonzaloriestracommented, Mar 30, 2020

Ok, I’ll add this to our backlog to have a look when we can. Thanks!

1reaction
gonzaloriestracommented, Feb 11, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I always get "Group creation failed" when trying to ...
Tried a different group name and got it to work. I'm guessing this was the problem that prevented it from being created in...
Read more >
Group creation fails on long name? - Google Groups
I am trying to create a group, which has a fairly long name (these groups are more for compound ... mydomain.nl, Create Failed:...
Read more >
What to Do When You Can't Create a Group on Signal
Go to Signal's official Twitter account, and check if the company already acknowledged the problem. Additionally, go to DownDetector and check ...
Read more >
Group Creation Failed - Zoho Cares
First the group form as included in the screenshot needs to be created without any group members (leave it blank). Then the group...
Read more >
Unable to create group with error message "Retry not possible"
Hi, I was able to create group with no issue before today and below is the error message I am seeing. Please let...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found