Http 603 ошибка

Issue Description
REST API call, Get Lead Activities, is returning 603 error

Issue Resolution
Error 603 refers to ‘access denied’ where authentication is successful but the user doesn’t have sufficient permission to call this API. Additional permissions may need to be assigned to the user role.
http://developers.marketo.com/rest-api/error-codes/

  1. Go to Admin > Users and Roles
  2. Select API User and identify what role it is assigned to (e.g. API role)
  3. Go to Roles and check the permissions assigned to the API role
  4. Check to see if the API role does not have ‘Read-Only Activity’ or ‘Read-Write Activity’ permission

In order to make a Get Lead Activities REST API call with the API user, the API role of the user must be modified to have permissions to  ‘Read-Only Activity’ or ‘Read-Write Activity’. If you use Workspaces and Partitions, make sure the API User has the necessary access.

Is this article helpful ?

YesNo

I want to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data and have an error.Can someone help me to solved the error 1,603,0 since I cannot solve , I already try to use http instead of https cause I read from other QnA channel that AT+HTTPPARA=»URL can only be read in http .. But nothing happen the error still there. I know the error is about the DNS but I do not know how to solve it.. Sorry it was my first time to use the sim900a

Here is my code:

#include <SoftwareSerial.h>
#include <ArduinoJson.h>

SoftwareSerial SIM900(10, 11);
StaticJsonBuffer<200> jsonBuffer; 


char t[32];
char deviceID[12] = "TESTING";
char Name[12] = "Irsyad";
char Place[12] = "JB";

 
void setup()
{
  SIM900.begin(9600);       // the GPRS baud rate
  Serial.begin(9600);
  Serial.println("Initializing..");
  
  DynamicJsonBuffer jsonBuffer;

}
 
void loop()
{
  Serial.println("");
  Serial.println("START");

  Serial.print("Device ID: ");
  Serial.println(deviceID);

  delay(1000);
 
  if (SIM900.available())
  Serial.write(SIM900.read());
 
  SIM900.println("AT");
  delay(3000);
 
  SIM900.println("AT+SAPBR=3,1,"Contype","GPRS""); // untuk cek  GPRS 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=3,1,"APN",""");//APN mobile phone (cek dekat phone)
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=1,1"); 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+SAPBR=2,1");
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPINIT"); // jika keluar error means gagal
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPPARA="CID",1"); //parameters untuk HTTP session
  delay(6000);
  ShowSerialData();
 
  StaticJsonBuffer<200> jsonBuffer; 
  JsonObject& object = jsonBuffer.createObject();  
  
  object.set("deviceID",deviceID);
  object.set("Name",Name);
  object.set("Place",Place);

  object.printTo(Serial);
  Serial.println(" ");  
  String sendtoserver;
  object.prettyPrintTo(sendtoserver);
  delay(4000);


  SIM900.println("AT+HTTPPARA="URL","http://gas-api.smartcp.app/api/ttn/uplink""); //Server address // tukar pakai lain https://
  delay(4000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPPARA="CONTENT","application/json""); //json format
  delay(4000);
  ShowSerialData();


  
  SIM900.println("AT+HTTPDATA=" + String(sendtoserver.length()) + ",100000"); // size bytes untuk hantar data dalam masa 10 seconds
  Serial.println(sendtoserver);
  delay(6000);
  ShowSerialData();
 
  SIM900.println(sendtoserver);
  delay(6000);
  ShowSerialData;
 
  SIM900.println("AT+HTTPACTION=1"); // Post the data (1 means post)
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPREAD"); 
  delay(6000);
  ShowSerialData();
 
  SIM900.println("AT+HTTPTERM");
  delay(10000);
  ShowSerialData;
}
 
void ShowSerialData()
{
  while (SIM900.available() != 0)
    Serial.write(SIM900.read());
  delay(1000);
 
}

enter image description here

# #firebase-realtime-database #httprequest #sim800l

Вопрос:

Я хочу отправить запрос POST с модуля SIM800L на firebase. До сих пор я получил только ошибку 603, которая говорит мне, что у меня нет права доступа?

Когда я отправляю тот же запрос от почтальона, установленного на моем ноутбуке, он работает нормально, доступ для чтения и записи установлен в значение true.

Должен ли я отправить какой-то маркер аутентификации с запросом или что-то в этом роде?

Заранее спасибо


Это код для arduino, управляющего модулем SIM800L

 #define SIM800L_RX     27
#define SIM800L_TX     26
#define SIM800L_PWRKEY 4
#define SIM800L_RST    5
#define SIM800L_POWER  23

String apn = "internet.eplus.de";      //APN
String apn_u = "eplus";                //APN-Username
String apn_p = "gprs";                 //APN-Password
String url = "https://benchmark-7913c-default-rtdb.europe-west1.firebasedatabase.app/.json";  //URL of Server

void setup()
{
  pinMode(SIM800L_POWER, OUTPUT);
  digitalWrite(SIM800L_POWER, HIGH);

  Serial.begin(115200);
  Serial.println("ESP32 SIM800L AT CMD Test");
  Serial2.begin(9600, SERIAL_8N1, SIM800L_TX, SIM800L_RX);
  delay(15000);
  while (Serial2.available()) {
    Serial.write(Serial2.read());
  }
  delay(2000);
  gsm_config_gprs();

  gsm_http_post("{"test" : "true"}");
  Serial.println("Done");
}


void loop() {
  
}

void gsm_http_post( String postdata) {
  Serial.println(" --- Start GPRS amp; HTTP --- ");
  gsm_send_serial("AT SAPBR=1,1");
  gsm_send_serial("AT SAPBR=2,1");
  gsm_send_serial("AT HTTPINIT");
  gsm_send_serial("AT HTTPPARA=CID,1");
  gsm_send_serial("AT HTTPPARA="URL","   url);
  gsm_send_serial("AT HTTPPARA=CONTENT,application/x-www-form-urlencoded");
  gsm_send_serial("AT HTTPDATA=192,5000");
  gsm_send_serial(postdata);
  gsm_send_serial("AT HTTPACTION=1");
  gsm_send_serial("AT HTTPREAD");
  gsm_send_serial("AT HTTPTERM");
  gsm_send_serial("AT SAPBR=0,1");
}

void gsm_config_gprs() {
  Serial.println(" --- CONFIG GPRS --- ");
  gsm_send_serial("AT SAPBR=3,1,Contype,GPRS");
  gsm_send_serial("AT SAPBR=3,1,APN,"   apn);
  if (apn_u != "") {
    gsm_send_serial("AT SAPBR=3,1,USER,"   apn_u);
  }
  if (apn_p != "") {
    gsm_send_serial("AT SAPBR=3,1,PWD,"   apn_p);
  }
}

void gsm_send_serial(String command) {
  Serial.println("Send ->: "   command);
  Serial2.println(command);
  long wtimer = millis();
  while (wtimer   3000 > millis()) {
    while (Serial2.available()) {
      Serial.write(Serial2.read());
    }
  }
  Serial.println();
}
 

Ответ №1:

Похоже, вы добавляете .json в конец URL-адреса перед назначением местоположения базы данных. Ошибка 603 просто означает, что местоположение, к которому вы пытаетесь получить доступ, просто не существует.

Пример URL-адреса: https://docs-examples.firebaseio.com/rest/saving-data/fireblog/posts.json

Документация: https://firebase.google.com/docs/database/rest/retrieve-data

Last Modified on 01/14/2019 4:19 pm MST

603 Error ‘Access Denied’ - Authentication is successful but user doesn’t have sufficient permission to call this API. Additional permissions may need to be assigned to the user role.

A 603 Marketo error is thrown in the Marketo Admin Notifications if users attempt to make API calls to endpoints that they have not enabled Marketo API permissions for. If these errors are experienced then the Marketo account setup needs to be reviewed. It is important to note that if these errors are only seen for endpoints such as /companies/describe during authentication and access token refresh, then the cause of the 603 error may be due to the API calls that are made to build metadata when calling the Marketo /describe endpoints. If that is the case, then these 603 errors will not inherently cause issues for your users, but the Marketo account and permissions should still be reviewed.

Note that a 603 error is not passed through to us and is visible through the Marketo Admin Notifications only. If you need to find out which object was accessed that caused this 603 error with certainty, you will need to reach out to Marketo directly for assistance.

Народ вечер добрый

Подскажите кому не сложно. При исходящем звонке получаю эио

— Executing [2501005@reseption-phone:2] Dial(«SIP/305-000001d3», «SIP/2501005@ducat») in new stack
== Begin MixMonitor Recording SIP/305-000001d3
== Using SIP RTP CoS mark 5
— Called SIP/2501005@ducat
— Got SIP response 603 «Decline» back from 212.116.247.5:5060
— SIP/ducat-000001d4 is busy
== Everyone is busy/congested at this time (1:1/0/0)
— Auto fallthrough, channel ‘SIP/305-000001d3’ status is ‘BUSY’
== MixMonitor close filestream (mixed)

Вход при этом есть

Как водится раньше все работало, щас с основным провайдером беда хотел перекинуть и застрял. Подскажите из за чего это обычно бывает и куда копать

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Http 409 ошибка литнет
  • Http 408 ошибка
  • Http 405 что значит ошибка
  • Html5 ошибка сети

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии