Skip to content

Error when trying to add an activity #76

@rlee1990

Description

@rlee1990

I am receiving the below error when trying to add an activity:
Here is the request code:

feed.addActivity(
        request: FeedAddActivityRequest(
          feeds: [feed.fid.rawValue],
          type: 'post',
          text: caption.value,
          attachmentUploads: attachments,
          mentionedUserIds: mentionedUserIds.value.isEmpty
              ? null
              : mentionedUserIds.value,
          visibility: AddActivityRequestVisibility.public,
          expiresAt: expire.value
              ? DateTime.now().add(const Duration(days: 1)).toIso8601String()
              : null,
        ),
      );
╔╣ Request ║ POST
flutter: ║  https://feeds.stream-io-api.com/api/v2/feeds/activities?connection_id=6945844b-0a05-107f-0300-000000054e4f&user_id=5be55096-853a-4b5c-a6ba-d2c540ffb64e
flutter: ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
flutter: ╔ Query Parameters
flutter: ╟ connection_id: 6945844b-0a05-107f-0300-000000054e4f
flutter: ╟ user_id: 5be55096-853a-4b5c-a6ba-d2c540ffb64e
flutter: ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
flutter: ╔ Headers
flutter: ╟ content-type: application/json
flutter: ╟ api_key: x3nvm98d25mk
flutter: ╟ X-Stream-Client: stream-feeds-dart-dart-v0.3.0
flutter: ╟ Authorization:
flutter: ║ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNWJlNTUwOTYtODUzYS00YjVjLWE2YmEtZDJjNTQwZmZiNjRlIiwidmFsaWRpdHlfaW5
flutter: ║ fc2Vjb25kcyI6ODY0MDAsImlhdCI6MTc2NjQyMzA5MywiZXhwIjoxNzY2NTA5NDkzfQ.0orOhWLgRZlexSeEQLl9-x-GOpApmMXsopMj8A5DttI
flutter: ╟ stream-auth-type: jwt
flutter: ╟ contentType: application/json
flutter: ╟ responseType: ResponseType.json
flutter: ╟ followRedirects: true
flutter: ╟ connectTimeout: 0:00:06.000000
flutter: ╟ receiveTimeout: 0:00:06.000000
flutter: ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
flutter: ╔ Body
flutter: ╟ attachments: null
flutter: ╟ collection_refs: null
flutter: ╟ custom: null
flutter: ╟ expires_at: null
flutter: ╟ feeds: [user:5be55096-853a-4b5c-a6ba-d2c540ffb64e]
flutter: ╟ filter_tags: null
flutter: ╟ id: null
flutter: ╟ interest_tags: null
flutter: ╟ location: null
flutter: ╟ mentioned_user_ids: null
flutter: ╟ parent_id: null
flutter: ╟ poll_id: null
flutter: ╟ restrict_replies: null
flutter: ╟ search_data: null
flutter: ╟ skip_enrich_url: null
flutter: ╟ text: This is just a test
flutter: ╟ type: post
flutter: ╟ visibility: public
flutter: ╟ visibility_tag: null
flutter: ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
flutter:
flutter: ╔╣ DioException ║ Status: 400 Bad Request
flutter: ║  https://feeds.stream-io-api.com/api/v2/feeds/activities?connection_id=6945844b-0a05-107f-0300-000000054e4f&user_id=5be55096-853a-4b5c-a6ba-d2c540ffb64e
flutter: ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
flutter: ╔ DioExceptionType.badResponse
flutter: ║ {"code":4,"message":"AddActivity failed with error: \"the format contains syntax errors\"","StatusCode":400,"duration":"
flutter: ║ 0.00ms","more_info":"https://getstream.io/chat/docs/api_errors_response","details":[]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions